From 0a4d3a002ea17f66f91343989754a2dc6be6bb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 22 May 2018 01:16:02 +0200 Subject: [PATCH] Include operating system type to the firmware update log. Add a new tip to the firmware page. --- packages/uhk-usb/src/uhk-operations.ts | 2 ++ .../components/device/firmware/device-firmware.component.html | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/uhk-usb/src/uhk-operations.ts b/packages/uhk-usb/src/uhk-operations.ts index 52771879..580005dc 100644 --- a/packages/uhk-usb/src/uhk-operations.ts +++ b/packages/uhk-usb/src/uhk-operations.ts @@ -9,6 +9,7 @@ import { } from './constants'; import * as path from 'path'; import * as fs from 'fs'; +import * as os from 'os'; import { UhkBlhost } from './uhk-blhost'; import { UhkHidDevice } from './uhk-hid-device'; import { snooze } from './util'; @@ -29,6 +30,7 @@ export class UhkOperations { } public async updateRightFirmware(firmwarePath = this.getFirmwarePath()) { + this.logService.debug(`[UhkOperations] Operating system: ${os.platform()} ${os.type()} ${os.release()} ${os.arch()}`); this.logService.debug('[UhkOperations] Start flashing right firmware'); const prefix = [`--usb 0x1d50,0x${EnumerationNameToProductId.bootloader.toString(16)}`]; 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 62f72578..66395335 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 @@ -18,6 +18,7 @@
  • Connect your UHK directly to the host computer. Don't use USB hubs or KVM switches.
  • Run Agent directly on the host operating system. Don't use VirtualBox or VMware Workstation.
  • Give a try to every USB port of your computer.
  • +
  • Remove every other USB device from your computer.
  • If the left half becomes unresponsive after a failed update then retry and follow the instructions displayed during the update to fix it.
  • If the above fails, retry a couple of times.
  • If everything else fails, please add a new comment to the GitHub issue, and attach the update log.