From 3d59bcf97eb51223fe3ad43823bfd6556f6d0188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Thu, 28 Jun 2018 18:41:16 +0200 Subject: [PATCH] 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 --- packages/uhk-usb/src/uhk-operations.ts | 5 ++-- .../firmware/device-firmware.component.html | 25 +++++++++++++------ .../firmware/device-firmware.component.ts | 15 ++++++++--- packages/uhk-web/src/app/store/index.ts | 8 ++---- .../uhk-web/src/app/store/reducers/device.ts | 6 ++++- 5 files changed, 40 insertions(+), 19 deletions(-) diff --git a/packages/uhk-usb/src/uhk-operations.ts b/packages/uhk-usb/src/uhk-operations.ts index eb78ee69..01339590 100644 --- a/packages/uhk-usb/src/uhk-operations.ts +++ b/packages/uhk-usb/src/uhk-operations.ts @@ -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); diff --git a/packages/uhk-web/src/app/components/device/firmware/device-firmware.component.html b/packages/uhk-web/src/app/components/device/firmware/device-firmware.component.html index 9a3911b5..00218856 100644 --- a/packages/uhk-web/src/app/components/device/firmware/device-firmware.component.html +++ b/packages/uhk-web/src/app/components/device/firmware/device-firmware.component.html @@ -12,13 +12,10 @@ Firmware {{ hardwareModules.rightModuleInfo.firmwareVersion }} is running on the right keyboard half.

-

Firmware update doesn't work on Windows 7, Windows Vista, and Windows XP. Use Windows 10, Windows 8, Linux, or OSX instead.

+

Firmware update doesn't work on Windows 7, Windows Vista, + and Windows XP. Use Windows 10, Windows 8, Linux, or OSX instead.

-

If the update process fails, disconnect every USB device from your computer including USB hubs, KVM switches, and every USB device. Then connect only your UHK and retry.

- -

If you tried the above and the update still keeps failing, please create a GitHub issue, and attach the update log.

- -

+