...since the console.log() uses the same and only available 'communication channel' it interferes with the upload... therefore, put your code into a setTimeout() function, or - even better - into 'the' onInit(){ ... } function and add the timeout to the code like this:
function onInit() {
// your code
}
setTimeout(onInit,999); // while dev, remove before upload for save()
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.
...since
the console.log()
uses the same and only available 'communication channel' it interferes with the upload... therefore, put your code into a setTimeout() function, or - even better - into 'the'onInit(){ ... }
function and add the timeout to the code like this: