Hi Gordon
USB.on('data',function (e) { USB.setConsole(); USB.on('data',undefined); });
Is working as expected, but a warning is signaled:
WARNING: Second argument to EventEmitter.on(..) must be a function or a String (containing code)
@Sacha 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.
Hi Gordon
Is working as expected, but a warning is signaled:
WARNING: Second argument to EventEmitter.on(..) must be a function or a String (containing code)