Just do setTimeout("LoopbackA.setConsole();",500);.
It's because the code is executed as it is sent to Espruino (in some cases there wouldn't be enough memory to hold all your program's text and execute it too!), so you're actually moving the console out of the way right in the middle of uploading the code (while echo is off).
Adding a setTimeout will mean it gets executed later, after code is executed and echo is turned back on.
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.
Just do
setTimeout("LoopbackA.setConsole();",500);
.It's because the code is executed as it is sent to Espruino (in some cases there wouldn't be enough memory to hold all your program's text and execute it too!), so you're actually moving the console out of the way right in the middle of uploading the code (while echo is off).
Adding a setTimeout will mean it gets executed later, after code is executed and echo is turned back on.