Skip to content

Commit 7dfe111

Browse files
committed
fix: disable sleep while charging to allow external communication and fix crash
1 parent fe17ad0 commit 7dfe111

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/tasks/src/standby.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ namespace StandbyMode
139139
void lightSleepMillis(unsigned long t)
140140
{
141141
#ifdef ESP_PLATFORM
142-
142+
if (hardware::isCharging()) { return; }
143143
graphics::getLCD()->waitDMA();
144144

145145
// Convert milliseconds to microseconds for the timer wake-up
@@ -285,7 +285,6 @@ namespace StandbyMode
285285

286286
lightSleepMillis(3000);
287287
buisy_io.unlock();
288-
Gsm::checkForMessages();
289288
#endif
290289
}
291290

0 commit comments

Comments
 (0)