Looks like return statement was omitted from setPinMode, Before change I've seen errors like this: Can not switch pin P9_12 into OUTPUT mode: TypeError: Cannot read property 'err' of undefined at Object.f.pinMode (/home/ubuntu/node-nest/node_modules/bonescript/index.js:161:19) at ... at /home/ubuntu/node-nest/node_modules/unofficial-nest-api/index.js:231:17 at IncomingMessage.<anonymous> (/home/ubuntu/node-nest/node_modules/unofficial-nest-api/index.js:213:25) at IncomingMessage.EventEmitter.emit (events.js:117:20)
* Needed to move index.js into src directory * Needed to add main.js to use an environment variable to read instrumented code * Needed package.json to point to main.js * Needed to remove command-line portions of eeprom.js * Needed to remove test-eeprom.json file from src directory
The current test are crap and I need a good set of automated regression tests. * Move the current tests to a TODO folder to remind me of tests I need to create. * Remove copies of socket.io-client library that ultimately needs to be part of BoneScript itself.