mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-09 06:31:35 -04:00
coroutine: kinda works now
This commit is contained in:
1 parent
4b9ea4f808
commit
49b4ed2a89
31 files changed
+392
-150
No files matched your search
+2
-2
@@ -134,7 +134,7 @@ void Power::readPowerStatus()
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t Power::runOnce()
|
||||
int32_t Power::runOnce()
|
||||
{
|
||||
readPowerStatus();
|
||||
|
||||
@@ -173,7 +173,7 @@ uint32_t Power::runOnce()
|
||||
#endif
|
||||
|
||||
// Only read once every 20 seconds once the power status for the app has been initialized
|
||||
return (statusHandler && statusHandler->isInitialized()) ? (1000 * 20) : 0;
|
||||
return (statusHandler && statusHandler->isInitialized()) ? (1000 * 20) : RUN_SAME;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user