You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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.

About

Avatar for Gordon @Gordon started