Fix simulator deep sleep mode

This commit is contained in:
Alessandro Genova
2025-07-28 23:58:03 -04:00
committed by Joey Castillo
parent 39d2c4499e
commit d903a827e9
2 changed files with 46 additions and 11 deletions

View File

@@ -51,6 +51,7 @@
#if __EMSCRIPTEN__
#include <emscripten.h>
void _wake_up_simulator(void);
#else
#include "watch_usb_cdc.h"
#endif
@@ -1023,6 +1024,10 @@ void cb_alarm_btn_extwake(void) {
}
void cb_alarm_fired(void) {
#if __EMSCRIPTEN__
_wake_up_simulator();
#endif
movement_state.woke_from_alarm_handler = true;
}