Skip to content

Commit 295860a

Browse files
authored
Merge pull request #46 from EnotionZ/sandbox/rzr/review/master
Fix mistake on testing boolean
2 parents d854ffd + ec41145 commit 295860a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gpio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ GPIO.prototype._get = function(fn) {
229229
GPIO.prototype.set = function(v, fn) {
230230
var self = this;
231231
var callback = typeof v === 'function' ? v : fn;
232-
if (typeof v === "boolean" || ) v = v ? 1 : 0;
232+
if (typeof v === "boolean") v = v ? 1 : 0;
233233
if (typeof v !== "number" || v !== 0) v = 1;
234234

235235
// if direction is out, just emit change event since we can reliably predict

0 commit comments

Comments
 (0)