1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #500 from jacktech24/master

Fixed bug, in Arduino output node
This commit is contained in:
Dave Conway-Jones 2014-11-28 10:52:12 +00:00
commit e9b1e287ba

View File

@ -130,7 +130,7 @@ module.exports = function(RED) {
msg.payload = msg.payload * 1; msg.payload = msg.payload * 1;
if ((msg.payload >= 0) && (msg.payload <= 255)) { if ((msg.payload >= 0) && (msg.payload <= 255)) {
//console.log(msg.payload, node.pin); //console.log(msg.payload, node.pin);
node.board.servoWrite(node.pin, msg.payload); node.board.analogWrite(node.pin, msg.payload);
} }
} }
if (node.state == "SERVO") { if (node.state == "SERVO") {