1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-04-19 12:02:19 +02:00
dockerfiles/node-red/arm/patch/36-rpi-gpio.js.patch

21 lines
718 B
Diff
Raw Normal View History

2016-08-22 11:37:10 +08:00
--- a/36-rpi-gpio.js
+++ b/36-rpi-gpio.js
@@ -224,7 +224,7 @@
this.butt = n.butt || 7;
var node = this;
- node.child = spawn(gpioCommand+".py", ["mouse,node.butt]);
+ node.child = spawn(gpioCommand, ["mouse",node.butt]);
node.status({fill:"green",shape:"dot",text:"common.status.ok"});
node.child.stdout.on('data', function (data) {
@@ -270,7 +270,7 @@
RED.nodes.createNode(this,n);
var node = this;
- node.child = spawn(gpioCommand+".py", ["kbd","0"]);
+ node.child = spawn(gpioCommand, ["kbd","0"]);
node.status({fill:"green",shape:"dot",text:"common.status.ok"});
node.child.stdout.on('data', function (data) {