Good practice is to put the onInti() into a setTimeout() in order to let the upload complete in it's own thread-share.
setTimeout(onInit,1000);
If you consider saving the code (with save()), remove this setTimeout(onInit,1000);, upload the code again, and then perform the save() in the console.
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.
@bosscube, could you elaborate on:
Could you list the step you perform to get there?
Good practice is to put the
onInti()
into asetTimeout()
in order to let the upload complete in it's own thread-share.If you consider saving the code (with
save()
), remove thissetTimeout(onInit,1000);
, upload the code again, and then perform thesave()
in the console.