Fix get-debug-info.js

This commit is contained in:
László Monda
2018-02-18 03:44:17 +01:00
parent 10ae68ad4b
commit 6ee21bcd7a

View File

@@ -13,7 +13,8 @@ function getUint16(buffer, offset) {
let prevGeneric, prevBasic, prevMedia, prevSystem, prevMouse;
function getDebugInfo() {
const payload = new Buffer([uhk.usbCommands.getDebugInfo]);
const payload = new Buffer([uhk.usbCommands.getDebugBuffer]);
console.log(payload)
console.log('Sending ', uhk.bufferToString(payload));
device.write(uhk.getTransferData(payload));
const rxBuffer = Buffer.from(device.readSync());