Fix script.

This commit is contained in:
László Monda
2017-09-19 01:08:53 +02:00
parent e99fb08cc2
commit 1122784bdb

View File

@@ -6,7 +6,6 @@ function readDebugInfo() {
const payload = new Buffer([uhk.usbCommands.readDebugInfo]);
console.log('Sending ', uhk.bufferToString(payload));
device.write(uhk.getTransferData(payload));
device.write([64]);
const receivedBuffer = Buffer.from(device.readSync());
console.log('Received', uhk.bufferToString(receivedBuffer));
setTimeout(readDebugInfo, 500)