• 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;
    }
    

    to

    bool jshSleep(JsSysTime timeUntilWake) {
       return true;
    }
    

    3) In \Espruino\targets\stm32\jshardware.c

    bool jshSleep(JsSysTime timeUntilWake) {
    ...
    ...
    ...
    }
    

    to

    bool jshSleep(JsSysTime timeUntilWake) {
       return true;
    }
    

    We have a working result. Thank you!

About

Avatar for user7265 @user7265 started