mirror of
https://github.com/meshtastic/firmware.git
synced 2026-02-01 03:01:10 -05:00
coroutine: kinda works now
This commit is contained in:
@@ -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