Display text about the state of the LED jumper.

This commit is contained in:
László Monda
2016-10-20 00:20:54 +02:00
parent f1525679ef
commit ee404fe09e

View File

@@ -34,6 +34,8 @@ function readLedJumper() {
process.exit(2);
}
console.log('Received', util.bufferToString(receivedBuffer));
var isLedJumperOn = receivedBuffer[1] === 0;
console.log('This means that the LED jumper is ' + (isLedJumperOn ? 'on' : 'off'))
setTimeout(readLedJumper, 500)
})
});