Make texts less redundant.

This commit is contained in:
László Monda
2016-10-20 00:28:00 +02:00
parent 729d7b2297
commit f33f1d71ea
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ function readLedJumper() {
} }
console.log('Received', util.bufferToString(receivedBuffer)); console.log('Received', util.bufferToString(receivedBuffer));
var isIso = receivedBuffer[1] === 0; var isIso = receivedBuffer[1] === 0;
console.log('This means that the ISO jumper is ' + (isIso ? 'closed' : 'open') + ' so the detected layout is ' + (isIso ? 'ISO' : 'ANSI')); console.log('ISO jumper is ' + (isIso ? 'closed' : 'open') + ' so the detected layout is ' + (isIso ? 'ISO' : 'ANSI'));
console.log('Restart the UHK after switching the switch for the change to take effect!'); console.log('Restart the UHK after switching the switch for the change to take effect!');
}) })
}); });

View File

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