Change the value of UsbCommandId_{GetDeviceState,SetTestLed,GetDebugBuffer,GetAdcValue,SetLedPwmBrightness}.

This commit is contained in:
László Monda
2017-12-12 18:49:40 +01:00
parent 6b60241180
commit 2eb31603f1
5 changed files with 13 additions and 9 deletions

View File

@@ -17,7 +17,11 @@ export enum UsbCommand {
WriteStagingUserConfig = 0x06,
ApplyConfig = 0x07,
LaunchEepromTransfer = 0x08,
GetKeyboardState = 16
GetDeviceState = 0x09,
SetTestLed = 0x0a,
GetDebugBuffer = 0x0b,
GetAdcValue = 0x0c,
SetLedPwmBrightness = 0x0d
}
export enum EepromOperation {

View File

@@ -106,7 +106,7 @@ export class UhkHidDevice {
public async waitUntilKeyboardBusy(): Promise<void> {
while (true) {
const buffer = await this.write(new Buffer([UsbCommand.GetKeyboardState]));
const buffer = await this.write(new Buffer([UsbCommand.GetDeviceState]));
if (buffer[1] === 0) {
break;
}