Skip to content

Commit 177ab50

Browse files
codal_app/microbithal: Use deepSleep() interruptable flag.
The new interruptable flag lets the deepSleep function to return before the milliSeconds time elapses, when the board has been woken up by a different source.
1 parent 81fcf40 commit 177ab50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codal_app/microbithal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void microbit_hal_power_off(void) {
129129

130130
void microbit_hal_power_deep_sleep(bool wake_on_ms, uint32_t ms) {
131131
if (wake_on_ms) {
132-
uBit.power.deepSleep(ms);
132+
uBit.power.deepSleep(ms, true);
133133
} else {
134134
uBit.power.deepSleep();
135135
}

0 commit comments

Comments
 (0)