diff options
author | Ryan <fauxpark@gmail.com> | 2020-07-02 13:12:34 +1000 |
---|---|---|
committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-08-29 14:30:02 -0700 |
commit | 8a4a0c25fdb2c4d0ac3ac8fd5f6ba14b56f4cd28 (patch) | |
tree | a7bd17453814e37839531484a147fb03773e6215 /tmk_core/protocol/lufa | |
parent | 60e5733c487cc0435e7d3b913f31ce4acc405d4a (diff) |
Change analogRead calls to analogReadPin (#9023)
* Change analogRead calls to analogReadPin
* Add ChangeLog
* Update docs, remove mention of `analogRead()`
* Retarget changelog for next round
Diffstat (limited to 'tmk_core/protocol/lufa')
-rw-r--r-- | tmk_core/protocol/lufa/adafruit_ble.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/lufa/adafruit_ble.cpp b/tmk_core/protocol/lufa/adafruit_ble.cpp index b07407f387..79b35fca31 100644 --- a/tmk_core/protocol/lufa/adafruit_ble.cpp +++ b/tmk_core/protocol/lufa/adafruit_ble.cpp @@ -38,7 +38,7 @@ #ifdef SAMPLE_BATTERY # ifndef BATTERY_LEVEL_PIN -# define BATTERY_LEVEL_PIN 7 +# define BATTERY_LEVEL_PIN B5 # endif #endif @@ -556,7 +556,7 @@ void adafruit_ble_task(void) { if (timer_elapsed(state.last_battery_update) > BatteryUpdateInterval && resp_buf.empty()) { state.last_battery_update = timer_read(); - state.vbat = analogRead(BATTERY_LEVEL_PIN); + state.vbat = analogReadPin(BATTERY_LEVEL_PIN); } #endif } |