Change UsbCommandId_WriteHardwareConfig and UsbCommandId_WriteUserConfig to 0x05 and 0x06.
This commit is contained in:
@@ -56,13 +56,13 @@ exports = module.exports = moduleExports = {
|
||||
jumpToModuleBootloader : 0x02,
|
||||
sendKbootCommandToModule: 0x03,
|
||||
readConfig : 0x04,
|
||||
writeHardwareConfig : 0x05,
|
||||
writeStagingUserConfig : 0x06,
|
||||
setTestLed: 0x14,
|
||||
writeUserConfig: 8,
|
||||
applyConfig: 9,
|
||||
setLedPwmBrightness: 10,
|
||||
getAdcValue: 11,
|
||||
launchEepromTransferLegacy: 12,
|
||||
writeHardwareConfig: 14,
|
||||
getKeyboardState: 16,
|
||||
getDebugInfo: 17,
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ let buffer = Buffer.from(device.readSync());
|
||||
configSize = buffer[1] + (buffer[2]<<8);
|
||||
console.log(`${configTypeString}configSize:`, configSize);
|
||||
|
||||
while (offset < configSize){
|
||||
while (offset < configSize) {
|
||||
const usbCommand = isHardwareConfig ? uhk.usbCommands.writeHardwareConfig : uhk.usbCommands.writeUserConfig;
|
||||
chunkSizeToRead = Math.min(chunkSize, configSize - offset);
|
||||
buffer = Buffer.concat([
|
||||
|
||||
Reference in New Issue
Block a user