It's just one of the gotchas of working with JS. Since it's not actually multithreaded you can't just yield - and it's one of the reasons I don't provide a wait function in Espruino (because it'd just get abused ;).
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.
Is it possible that
setupGPS();
or something like that clears the screen?That is why JavaScript has promises...
It's just one of the gotchas of working with JS. Since it's not actually multithreaded you can't just
yield
- and it's one of the reasons I don't provide await
function in Espruino (because it'd just get abused ;).