mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-17 10:32:07 +00:00
if we can't sleep, at least have the processor block for 100ms
This commit is contained in:
parent
cb2aa3b29f
commit
1f668046a0
@ -84,6 +84,9 @@ static void lsIdle()
|
|||||||
powerFSM.trigger(EVENT_WAKE_TIMER);
|
powerFSM.trigger(EVENT_WAKE_TIMER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Someone says we can't sleep now, so just save some power by sleeping the CPU for 100ms or so
|
||||||
|
delay(100);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Time to stop sleeping!
|
// Time to stop sleeping!
|
||||||
|
Loading…
Reference in New Issue
Block a user