Instruct the user to power cycle the keyboard when encountered with an invalid hardware configuration.
This commit is contained in:
@@ -53,7 +53,7 @@ export class HardwareConfiguration {
|
||||
this.isIso = buffer.readBoolean();
|
||||
return this;
|
||||
} catch (e) {
|
||||
throw new Error('Invalid hardware configuration (Index out of bounds)');
|
||||
throw new Error('Please power cycle your keyboard (Invalid hardware configuration: Index out of bounds)');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export const getHardwareConfigFromDeviceResponse = (json: string): HardwareConfi
|
||||
}
|
||||
|
||||
if (hardwareConfig.signature !== 'UHK') {
|
||||
throw Error('Invalid hardware configuration (Invalid signature)');
|
||||
throw Error('Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)');
|
||||
}
|
||||
|
||||
return hardwareConfig;
|
||||
|
||||
Reference in New Issue
Block a user