That's interesting - I guess it is possible that Espruino can get totally overwhelmed. The code looks a bit like this:
function onIdle() {
while (hasEvent) handleEvent();
while (hasTimer) handleTimer();
}
So if you get so many input events that the queue can never get emptied, it'll get stuck. I'll file a bug for this and will fix it for 1v72 - probably doing something like:
function onIdle() {
var howMany = getHowManyEvents();
while (howMany--) handleEvent();
while (hasTimer) handleTimer();
}
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.
That's interesting - I guess it is possible that Espruino can get totally overwhelmed. The code looks a bit like this:
So if you get so many input events that the queue can never get emptied, it'll get stuck. I'll file a bug for this and will fix it for 1v72 - probably doing something like: