aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
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
parent60e5733c487cc0435e7d3b913f31ce4acc405d4a (diff)
downloadfirmware-8a4a0c25fdb2c4d0ac3ac8fd5f6ba14b56f4cd28.tar.gz
firmware-8a4a0c25fdb2c4d0ac3ac8fd5f6ba14b56f4cd28.tar.bz2
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')
-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 @@
#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
}