mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 06:28:23 +01:00
node-red-arm keyboard patch
This commit is contained in:
20
node-red/arm/patch/36-rpi-gpio.js.patch
Normal file
20
node-red/arm/patch/36-rpi-gpio.js.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
--- 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) {
|
||||
Reference in New Issue
Block a user