0.1.33 remove emitting from find (can do local stuff via interrupt processor. update from changes to sockets

master
David Kebler 2019-04-28 10:08:51 -07:00
parent d75c431231
commit 6b137abb71
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "@uci/mcp", "name": "@uci/mcp",
"main": "src", "main": "src",
"version": "0.1.32", "version": "0.1.33",
"description": "Classes and Helper Functions for using the MCP chip on I2C Bus", "description": "Classes and Helper Functions for using the MCP chip on I2C Bus",
"scripts": { "scripts": {
"relays": "node -r esm examples/relays", "relays": "node -r esm examples/relays",
@ -29,7 +29,7 @@
}, },
"homepage": "https://github.com/uCOMmandIt/uci-mcp#readme", "homepage": "https://github.com/uCOMmandIt/uci-mcp#readme",
"dependencies": { "dependencies": {
"@uci/i2c-device": "^0.1.16", "@uci/i2c-device": "^0.1.17",
"@uci-utils/logger": "0.0.14", "@uci-utils/logger": "0.0.14",
"@uci-utils/byte": "^0.2.2" "@uci-utils/byte": "^0.2.2"
}, },

View File

@ -144,7 +144,6 @@ const icommands = {
delete res.status delete res.status
res.interrupt_ready = status || false res.interrupt_ready = status || false
res.state = (await this.commands.pin.status(packet)).status.pins[0][1] res.state = (await this.commands.pin.status(packet)).status.pins[0][1]
this.emit('interrupt',Object.assign({},res)) // emit for end user purposes, don't allow mutation
this._interruptProcess(res) this._interruptProcess(res)
return res return res
} else { } else {