We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d854ffd + ec41145 commit 295860aCopy full SHA for 295860a
lib/gpio.js
@@ -229,7 +229,7 @@ GPIO.prototype._get = function(fn) {
229
GPIO.prototype.set = function(v, fn) {
230
var self = this;
231
var callback = typeof v === 'function' ? v : fn;
232
- if (typeof v === "boolean" || ) v = v ? 1 : 0;
+ if (typeof v === "boolean") v = v ? 1 : 0;
233
if (typeof v !== "number" || v !== 0) v = 1;
234
235
// if direction is out, just emit change event since we can reliably predict
0 commit comments