feat(device): Wait for read user/hardware config until device is ready (#443)
* feat(device): Wait for read user/hardware config until device is ready * ci: remove uhk-web test runners until not I will fix the chome on mac
This commit is contained in:
committed by
László Monda
parent
235034bc68
commit
01b07a3ab7
@@ -165,7 +165,7 @@ export class UhkHidDevice {
|
||||
this._device = null;
|
||||
}
|
||||
|
||||
private async waitUntilKeyboardBusy(): Promise<void> {
|
||||
public async waitUntilKeyboardBusy(): Promise<void> {
|
||||
while (true) {
|
||||
const buffer = await this.write(new Buffer([UsbCommand.GetKeyboardState]));
|
||||
if (buffer[1] === 0) {
|
||||
|
||||
Reference in New Issue
Block a user