I fixed another bug (see github discussion with @Gordon about my changes) and now finally I'm talking to Espruino.
But for some reason I'm not getting the correct return values and console output from Espruino.
I have a file foo.js:
Now when I call espruino tool, I get the following:
$ espruinotool -p /dev/cu.usbmodem1411 foo.js
Connecting to '/dev/cu.usbmodem1411'
--]| __|_ -| . | _| | | | | . |
--]|_____|___| _|_| |___||_|_|___|
--] |_| http://espruino.com
--] 1v81 Copyright 2015 G.Williams
I expected it to return 123 for the first statement, then write 124 to the console and then return undefined for the second statement. The console output is nowhere to be found and undefined is not the correct result. But if I now use WebIDE, I can verify that a really has the value 123, so the code has been executed.
© Espruino, powered by microcosm.
Report a problem