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:
Róbert Kiss
2017-10-14 00:55:16 +02:00
committed by László Monda
parent 235034bc68
commit 01b07a3ab7
3 changed files with 3 additions and 2 deletions

View File

@@ -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) {