mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-18 01:11:42 +10:00
Fix #167 while in light sleep, allow loop() to still run occasionally
This commit is contained in:
+2
-2
@@ -111,8 +111,8 @@ void initDeepSleep()
|
||||
#endif
|
||||
}
|
||||
|
||||
/// return true if sleep is allowed
|
||||
static bool doPreflightSleep()
|
||||
|
||||
bool doPreflightSleep()
|
||||
{
|
||||
if (preflightSleep.notifyObservers(NULL) != 0)
|
||||
return false; // vetoed
|
||||
|
||||
Reference in New Issue
Block a user