Change the arguments of UsbCommandId_LaunchEepromTransfer and its id to 0x08.
This commit is contained in:
+30
-10
@@ -44,6 +44,17 @@ function getBootloaderDevice() {
|
||||
return foundDevice;
|
||||
}
|
||||
|
||||
let configBufferIds = {
|
||||
hardwareConfig: 0,
|
||||
stagingUserConfig: 1,
|
||||
validatedUserConfig: 2,
|
||||
};
|
||||
|
||||
let eepromOperations = {
|
||||
read: 0,
|
||||
write: 1,
|
||||
};
|
||||
|
||||
exports = module.exports = moduleExports = {
|
||||
bufferToString,
|
||||
getUhkDevice,
|
||||
@@ -59,10 +70,10 @@ exports = module.exports = moduleExports = {
|
||||
writeHardwareConfig : 0x05,
|
||||
writeStagingUserConfig : 0x06,
|
||||
applyConfig : 0x07,
|
||||
launchEepromTransfer : 0x08,
|
||||
setTestLed: 0x14,
|
||||
setLedPwmBrightness: 10,
|
||||
getAdcValue: 11,
|
||||
launchEepromTransferLegacy: 12,
|
||||
getKeyboardState: 16,
|
||||
getDebugInfo: 17,
|
||||
},
|
||||
@@ -93,16 +104,25 @@ exports = module.exports = moduleExports = {
|
||||
hardwareConfigSize: 4,
|
||||
userConfigSize: 5,
|
||||
},
|
||||
configBufferIds: {
|
||||
hardwareConfig: 0,
|
||||
stagingUserConfig: 1,
|
||||
validatedUserConfig: 2,
|
||||
},
|
||||
configBufferIds,
|
||||
eepromOperations,
|
||||
eepromTransfer: {
|
||||
readHardwareConfig: 0,
|
||||
writeHardwareConfig: 1,
|
||||
readUserConfig: 2,
|
||||
writeUserConfig: 3,
|
||||
readHardwareConfig: {
|
||||
operation: eepromOperations.read,
|
||||
configBuffer: configBufferIds.hardwareConfig,
|
||||
},
|
||||
writeHardwareConfig: {
|
||||
operation: eepromOperations.write,
|
||||
configBuffer:configBufferIds.hardwareConfig,
|
||||
},
|
||||
readUserConfig: {
|
||||
operation: eepromOperations.read,
|
||||
configBuffer: configBufferIds.validatedUserConfig,
|
||||
},
|
||||
writeUserConfig: {
|
||||
operation: eepromOperations.write,
|
||||
configBuffer: configBufferIds.validatedUserConfig,
|
||||
},
|
||||
},
|
||||
kbootCommands: {
|
||||
idle: 0,
|
||||
|
||||
Reference in New Issue
Block a user