Replace UsbCommandId_ReadHardwareConfig and UsbCommandId_ReadUserConfig with UsbCommandId_ReadConfig.

This commit is contained in:
László Monda
2017-12-12 01:24:29 +01:00
parent 22c1fa641a
commit 88d92130d5
4 changed files with 36 additions and 22 deletions
+10 -6
View File
@@ -51,21 +51,20 @@ exports = module.exports = moduleExports = {
getTransferData,
checkModuleSlot,
usbCommands: {
getProperty: 0,
reenumerate: 1,
getProperty : 0x00,
reenumerate : 0x01,
jumpToModuleBootloader : 0x02,
sendKbootCommandToModule: 0x03,
readConfig : 0x04,
setTestLed: 0x14,
writeUserConfig: 8,
applyConfig: 9,
setLedPwmBrightness: 10,
getAdcValue: 11,
launchEepromTransferLegacy: 12,
readHardwareConfig: 13,
writeHardwareConfig: 14,
readUserConfig: 15,
getKeyboardState: 16,
getDebugInfo: 17,
jumpToModuleBootloader: 0x02,
sendKbootCommandToModule: 0x03,
},
enumerationModes: {
bootloader: 0,
@@ -94,6 +93,11 @@ exports = module.exports = moduleExports = {
hardwareConfigSize: 4,
userConfigSize: 5,
},
configBufferIds: {
hardwareConfig: 0,
stagingUserConfig: 1,
validatedUserConfig: 2,
},
eepromTransfer: {
readHardwareConfig: 0,
writeHardwareConfig: 1,