Make texts less redundant.
This commit is contained in:
@@ -35,7 +35,7 @@ function readLedJumper() {
|
||||
}
|
||||
console.log('Received', util.bufferToString(receivedBuffer));
|
||||
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!');
|
||||
})
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@ function readLedJumper() {
|
||||
}
|
||||
console.log('Received', util.bufferToString(receivedBuffer));
|
||||
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)
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user