Skip to content

Commit

Permalink
Keep fuel gauge active during sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
eberseth committed May 10, 2021
1 parent 1c6a10f commit bad6dd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tracker_sleep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ TrackerSleepResult TrackerSleep::sleep() {
}

config.mode(SystemSleepMode::ULTRA_LOW_POWER)
.gpio(PMIC_INT, FALLING); // Always detect power events
.gpio(PMIC_INT, FALLING) // Always detect power events
.gpio(LOW_BAT_UC, FALLING); // Keep fuel gauge awake

// Accumulate all of the pin sources for wake
for (auto pin : _onPin) {
Expand Down

0 comments on commit bad6dd9

Please sign in to comment.