Yes, that could cause you issues when the device is started when not connected to USB... It'll automatically move to Serial1 and while you can send data, no responses will be received by the data handler.
Also, as you say any calls to console.log will go right out to the device. In the onInit function you could try forcing the console on to USB with USB.setConsole...
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.
Yes, that could cause you issues when the device is started when not connected to USB... It'll automatically move to Serial1 and while you can send data, no responses will be received by the data handler.
Also, as you say any calls to
console.log
will go right out to the device. In theonInit
function you could try forcing the console on to USB withUSB.setConsole
...