Skip to content

Commit

Permalink
Improve the RTC battery readings
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Nov 16, 2024
1 parent 869b9d2 commit fc9b7d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ void checkBatteryLowVoltageDivider() {
}

void checkBatteryRTC() {
// Make a reading first, this is because the RTC battery first reading is often bad.
analogRead(RTC_BAT_SENSE);
delayMicroseconds(200);
battRTC = sampleBattery(RTC_BAT_SENSE);
}

Expand Down

0 comments on commit fc9b7d8

Please sign in to comment.