node-red-contrib-i2c
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -8,3 +8,3 @@ module.exports = function(RED) { | ||
RED.nodes.createNode(this, n); | ||
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno); | ||
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno)); | ||
var node = this; | ||
@@ -37,3 +37,3 @@ | ||
RED.nodes.createNode(this, n); | ||
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno); | ||
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno)); | ||
this.address = n.address; | ||
@@ -116,3 +116,3 @@ this.command = n.command; | ||
RED.nodes.createNode(this, n); | ||
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno); | ||
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno)); | ||
this.address = parseInt(n.address); | ||
@@ -124,7 +124,7 @@ this.command = parseInt(n.command); | ||
var node = this; | ||
node.port = I2C.openSync( node.busno ); | ||
node.on("input", function(msg) { | ||
var myPayload; | ||
var address = node.address; | ||
var address = node.address; | ||
if (isNaN(address)) address = msg.address; | ||
@@ -131,0 +131,0 @@ var command = node.command; |
{ | ||
"name": "node-red-contrib-i2c", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "A Node-RED node to talk to the Raspiberry PI's I2C port", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28852