aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-07-02 13:12:34 +1000
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2020-08-29 14:30:02 -0700
commit8a4a0c25fdb2c4d0ac3ac8fd5f6ba14b56f4cd28 (patch)
treea7bd17453814e37839531484a147fb03773e6215 /tmk_core/protocol
parent60e5733c487cc0435e7d3b913f31ce4acc405d4a (diff)
downloadqmk_firmware-8a4a0c25fdb2c4d0ac3ac8fd5f6ba14b56f4cd28.tar.gz
qmk_firmware-8a4a0c25fdb2c4d0ac3ac8fd5f6ba14b56f4cd28.zip
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')
-rw-r--r--tmk_core/protocol/lufa/adafruit_ble.cpp4
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 b07407f38..79b35fca3 100644
--- a/tmk_core/protocol/lufa/adafruit_ble.cpp
+++ b/tmk_core/protocol/lufa/adafruit_ble.cpp
@@ -38,7 +38,7 @@
38 38
39#ifdef SAMPLE_BATTERY 39#ifdef SAMPLE_BATTERY
40# ifndef BATTERY_LEVEL_PIN 40# ifndef BATTERY_LEVEL_PIN
41# define BATTERY_LEVEL_PIN 7 41# define BATTERY_LEVEL_PIN B5
42# endif 42# endif
43#endif 43#endif
44 44
@@ -556,7 +556,7 @@ void adafruit_ble_task(void) {
556 if (timer_elapsed(state.last_battery_update) > BatteryUpdateInterval && resp_buf.empty()) { 556 if (timer_elapsed(state.last_battery_update) > BatteryUpdateInterval && resp_buf.empty()) {
557 state.last_battery_update = timer_read(); 557 state.last_battery_update = timer_read();
558 558
559 state.vbat = analogRead(BATTERY_LEVEL_PIN); 559 state.vbat = analogReadPin(BATTERY_LEVEL_PIN);
560 } 560 }
561#endif 561#endif
562} 562}