use the original port_idle_until_interrupt() if not CIRCUITPY_ALARM.

This commit is contained in:
jun2sak 2021-02-28 16:27:37 +09:00
parent 7cecd99658
commit 7bb789625e
1 changed files with 4 additions and 0 deletions

4
main.c
View File

@ -430,7 +430,11 @@ STATIC bool run_code_py(safe_mode_t safe_mode) {
// it may also return due to another interrupt, that's why we check
// for deep sleep alarms above. If it wasn't a deep sleep alarm,
// then we'll idle here again.
#if CIRCUITPY_ALARM
alarm_pretending_deep_sleep();
#else
port_idle_until_interrupt();
#endif
}
}
}