Ok, I removed the data event.
Now, on connecting I get a lot of garbage, something like:
▒ ▒ ▒▒''▒ ▒ ▒▒▒'▒' ▒▒' ▒ ▒ ▒ ▒▒▒'▒' ▒▒' ▒ ▒ ▒ ▒▒▒'▒' ▒▒' ▒ ▒ ▒ ▒▒▒'▒' ▒▒'▒▒▒▒▒▒' ▒▒▒'▒▒' ▒ ▒ ▒▒▒' ▒▒' ▒ ▒ ▒▒▒' ▒▒' ▒ ▒ ▒▒▒' ▒▒' ▒ ▒ ▒▒▒' ▒▒' :▒▒▒▒'
I also modified the try/catch block like this:
try{ LoopbackB.setConsole(); } catch(e){ USB.write("LoopbackB.setConsole(): " + e.type + " " + e.message + " " + e.stack); }
and on connecting putty, the IDE shows the "setDeviceClockCmd" error, so it's still there.
@César started
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.
Ok, I removed the data event.
Now, on connecting I get a lot of garbage, something like:
I also modified the try/catch block like this:
and on connecting putty, the IDE shows the "setDeviceClockCmd" error, so it's still there.