Ahh, ok. That's expected - you enter the command, and it's executed, so it prints 158, but then print returns undefined so that's printed to the REPL.
Just send the command, prefixed with char code 16 (so "\x10") and then Espruino knows to turn 'echo' off for that line, so it won't print the =undefined bit.
I'll see about removing the debugger from emulator builds...
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.
Ahh, ok. That's expected - you enter the command, and it's executed, so it prints 158, but then
print
returnsundefined
so that's printed to the REPL.Just send the command, prefixed with char code 16 (so
"\x10"
) and then Espruino knows to turn 'echo' off for that line, so it won't print the=undefined
bit.I'll see about removing the debugger from emulator builds...