I helped Andrey change project to fix this. 1) In \Espruino\targets\linux\jshardware.c we cut function
bool jshSleep(JsSysTime timeUntilWake) { ... ... ... }
to
bool jshSleep(JsSysTime timeUntilWake) { return false; }
2) In \Espruino\targets\mbed\jshardware.cpp
bool jshSleep(JsSysTime timeUntilWake) { __WFI(); // Wait for Interrupt return true; }
bool jshSleep(JsSysTime timeUntilWake) { return true; }
3) In \Espruino\targets\stm32\jshardware.c
We have a working result. Thank you!
@user7265 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I helped Andrey change project to fix this.
1) In \Espruino\targets\linux\jshardware.c we cut function
to
2) In \Espruino\targets\mbed\jshardware.cpp
to
3) In \Espruino\targets\stm32\jshardware.c
to
We have a working result. Thank you!