We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd54d5 commit 6a2195eCopy full SHA for 6a2195e
Firmware/RTK_Everywhere/Buttons.ino
@@ -66,9 +66,17 @@ void powerDown(bool displayInfo)
66
67
while (1)
68
{
69
- // We should never get here but good to know if we do
+ // Platforms with power control won't get here
70
+ // Postcard will get here if the battery is too low
71
+
72
systemPrintln("Device powered down");
73
delay(5000);
74
75
+ checkBatteryLevels(); // Force check so you see battery level immediately at power on
76
77
+ // Restart if charging has gotten us high enough
78
+ if (batteryLevelPercent > 5 && batteryChargingPercentPerHour > 0.5)
79
+ ESP.restart();
80
}
81
82
0 commit comments