Add a lot of useful instructions to the firmware page.

This commit is contained in:
László Monda
2018-05-22 00:38:27 +02:00
parent 1ff51697b1
commit d11c532ea4
4 changed files with 22 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
export namespace Constants { export namespace Constants {
export const AGENT_GITHUB_URL = 'https://github.com/UltimateHackingKeyboard/agent'; export const AGENT_GITHUB_URL = 'https://github.com/UltimateHackingKeyboard/agent';
export const FIRMWARE_GITHUB_ISSUE_URL = 'https://github.com/UltimateHackingKeyboard/agent/issues/567';
} }

View File

@@ -12,14 +12,16 @@
Firmware {{ hardwareModules.rightModuleInfo.firmwareVersion }} is running on the right keyboard half. Firmware {{ hardwareModules.rightModuleInfo.firmwareVersion }} is running on the right keyboard half.
</p> </p>
<p> If the update process fails, consider the following points:
<i> <ol>
Please note that the firmware update process may sometimes fail. If if fails then <li>Windows 7, Windows Vista, and Windows XP are not supported. Use Linux, OSX, Windows 10, or Windows 8.</li>
simply retry until it succeeds. If the left half becomes unresponsive after a failed <li>Connect your UHK directly to the host computer. Don't use USB hubs or KVM switches.</li>
update then retry and follow the instructions displayed during the update to fix it. <li>Run Agent directly on the host operating system. Don't use VirtualBox or VMware Workstation.</li>
We'll make the firmware update process more robust. <li>Give a try to every USB port of your computer.</li>
</i> <li>If the left half becomes unresponsive after a failed update then retry and follow the instructions displayed during the update to fix it.</li>
</p> <li>If the above fails, retry a couple of times.</li>
<li>If everything else fails, please add a new comment to <a class="link-github" (click)="openFirmwareGitHubIssuePage($event)">the GitHub issue</a>, and attach the update log.</li>
</ol>
<p> <p>
<button class="btn btn-primary" <button class="btn btn-primary"

View File

@@ -5,3 +5,7 @@
min-height: 100%; min-height: 100%;
width: 100%; width: 100%;
} }
.link-github {
cursor: pointer;
}

View File

@@ -3,6 +3,8 @@ import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription'; import { Subscription } from 'rxjs/Subscription';
import { HardwareModules, VersionInformation } from 'uhk-common'; import { HardwareModules, VersionInformation } from 'uhk-common';
import { Constants } from 'uhk-common';
import { OpenUrlInNewWindowAction } from '../../../store/actions/app';
import { import {
AppState, AppState,
@@ -60,4 +62,9 @@ export class DeviceFirmwareComponent implements OnDestroy {
}.bind(this); }.bind(this);
fileReader.readAsArrayBuffer(files[0]); fileReader.readAsArrayBuffer(files[0]);
} }
openFirmwareGitHubIssuePage(event): void {
event.preventDefault();
this.store.dispatch(new OpenUrlInNewWindowAction(Constants.FIRMWARE_GITHUB_ISSUE_URL));
}
} }