Change analogRead calls to analogReadPin (#9023)

* Change analogRead calls to analogReadPin

* Add ChangeLog

* Update docs, remove mention of `analogRead()`

* Retarget changelog for next round
This commit is contained in:
Ryan 2020-07-02 13:12:34 +10:00 committed by James Young
parent 60e5733c48
commit 8a4a0c25fd
5 changed files with 27 additions and 25 deletions

View file

@ -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
}