Change the value of UsbCommandId_{GetDeviceState,SetTestLed,GetDebugBuffer,GetAdcValue,SetLedPwmBrightness}.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user