feat: device recovery mode (#642)
* add new page and ipc processing * refactor: remove unused references from uhk.js * feat: add device recovery route * refactor: device permission * feat: write firmware update log to the screen * fix: xterm height * feat: add reload button to the recovery page * refactor: deviceConnectionState.hasPermission in appStartInfo * refactor: use correct imports * refactor: move .ok-button css class to the main style.scss * feat: add bootload active route guard * style: move RecoveryDeviceAction into new line * feat: delete reload button * feat: start device polling after device recovery
This commit is contained in:
committed by
László Monda
parent
2cf8044987
commit
653465f0e0
@@ -1,7 +1,5 @@
|
||||
const util = require('util');
|
||||
const HID = require('node-hid');
|
||||
const {HardwareConfiguration, UhkBuffer} = require('uhk-common');
|
||||
const {getTransferBuffers, ConfigBufferId, UhkHidDevice, UsbCommand} = require('uhk-usb');
|
||||
const Logger = require('./logger');
|
||||
const debug = process.env.DEBUG;
|
||||
|
||||
@@ -18,7 +16,7 @@ const kbootCommandIdToName = {
|
||||
const eepromOperationIdToName = {
|
||||
0: 'read',
|
||||
1: 'write',
|
||||
}
|
||||
};
|
||||
|
||||
function bufferToString(buffer) {
|
||||
let str = '';
|
||||
|
||||
Reference in New Issue
Block a user