mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
lots of little node edits to clean up jsHint "errors"
This commit is contained in:
@@ -147,7 +147,8 @@ module.exports = function(RED) {
|
||||
this.level = n.level || 0;
|
||||
this.out = n.out || "out";
|
||||
var node = this;
|
||||
(node.out === "pwm") ? (node.op = "pwm") : (node.op = "write");
|
||||
if (node.out === "pwm") { node.op = "pwm"; }
|
||||
else { node.op = "write"; }
|
||||
|
||||
if (node.pin !== undefined) {
|
||||
exec(gpioCommand+" mode "+node.pin+" "+node.out, function(err,stdout,stderr) {
|
||||
|
Reference in New Issue
Block a user