fixes bug in blink example

This commit is contained in:
Todd Treece 2014-12-23 08:36:17 -05:00
parent cf1a5b1872
commit 68502243b1

View file

@ -18,5 +18,5 @@ setInterval(function() {
// get the current state of the LED
var state = led.readSync();
// write the opposite of the current state to the LED pin
led.writeSync(!state);
led.writeSync(Number(!state));
}, 1000);