mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix pi gpio output of boolean to actually send 1/0
rather than true/false
This commit is contained in:
		| @@ -142,9 +142,9 @@ module.exports = function(RED) { | ||||
|             var limit = 1; | ||||
|             if (node.out === "pwm") { limit = 100; } | ||||
|             if ((out >= 0) && (out <= limit)) { | ||||
|                 if (RED.settings.verbose) { node.log("out: "+msg.payload); } | ||||
|                 if (RED.settings.verbose) { node.log("out: "+out); } | ||||
|                 if (node.child !== null) { | ||||
|                     node.child.stdin.write(msg.payload+"\n"); | ||||
|                     node.child.stdin.write(out+"\n"); | ||||
|                     node.status({fill:"green",shape:"dot",text:msg.payload.toString()}); | ||||
|                 } | ||||
|                 else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user