add delay_ms function for simulator

This commit is contained in:
joeycastillo
2022-10-11 22:11:58 -05:00
parent b399f4ca45
commit f79741a85f
3 changed files with 8 additions and 2 deletions

View File

@@ -156,13 +156,13 @@ bool app_loop(void) {
if (application_state.enter_sleep_mode) {
// wait a moment for the user's finger to be off the button
main_loop_sleep(250);
delay_ms(250);
// nap time :)
watch_enter_deep_sleep_mode();
// we just woke up; wait a moment again for the user's finger to be off the button...
main_loop_sleep(250);
delay_ms(250);
// and prevent ourselves from going right back to sleep.
application_state.enter_sleep_mode = false;