feat: Tweak unsupported Windows firmware update notification (#705)

* feat: Tweak unsupported Windows firmware update notification

* feat: Display firmware update status

* feat: throw error when left half not connected under firmware upgrade
This commit is contained in:
Róbert Kiss
2018-06-28 18:41:16 +02:00
committed by László Monda
parent 5e4fc983fb
commit 3d59bcf97e
5 changed files with 40 additions and 19 deletions

View File

@@ -59,8 +59,9 @@ export class UhkOperations {
const leftModuleBricked = await this.waitForKbootIdle();
if (!leftModuleBricked) {
this.logService.error('[UhkOperations] Couldn\'t connect to the left keyboard half.');
return;
const msg = '[UhkOperations] Couldn\'t connect to the left keyboard half.';
this.logService.error(msg);
throw new Error(msg);
}
await this.device.reenumerate(EnumerationModes.Buspal);