Where is this set (jsiStatus & JSIS_ALLOW_DEEP_SLEEP)?
I've finished implementing the deep sleep functionality so it sleeps for real if waiting for things that take more than 1/2 second but I have to comment out the above line. Of course then the console does not work very well :)
I can't see the above flag being set for jsiStatus anywhere? Guessing that it should only be set when a console is not connected?
Also, on another note, if I want to use 115200 baud for the console, how do I do it (on the PC side)?
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.
Where is this set
(jsiStatus & JSIS_ALLOW_DEEP_SLEEP)
?I've finished implementing the deep sleep functionality so it sleeps for real if waiting for things that take more than 1/2 second but I have to comment out the above line. Of course then the console does not work very well :)
I can't see the above flag being set for jsiStatus anywhere? Guessing that it should only be set when a console is not connected?
Also, on another note, if I want to use 115200 baud for the console, how do I do it (on the PC side)?