File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 5050 },
5151 "scripts" : {
5252 "postinstall" : " lerna bootstrap" ,
53- "test" :" run-p -sn test:test-serializer test:uhk-common test:uhk-web " ,
53+ "test" :" run-p -sn test:test-serializer test:uhk-common" ,
5454 "test:test-serializer" : " lerna exec --scope test-serializer npm test" ,
5555 "test:uhk-common" : " lerna exec --scope uhk-common npm test" ,
5656 "test:uhk-web" : " lerna exec --scope uhk-web npm test" ,
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ export class DeviceService {
4646 */
4747 public async loadConfigurations ( event : Electron . Event ) : Promise < void > {
4848 try {
49+ await this . device . waitUntilKeyboardBusy ( ) ;
4950 const userConfiguration = await this . loadConfiguration (
5051 SystemPropertyIds . MaxUserConfigSize ,
5152 UsbCommand . ReadUserConfig ,
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export class UhkHidDevice {
165165 this . _device = null ;
166166 }
167167
168- private async waitUntilKeyboardBusy ( ) : Promise < void > {
168+ public async waitUntilKeyboardBusy ( ) : Promise < void > {
169169 while ( true ) {
170170 const buffer = await this . write ( new Buffer ( [ UsbCommand . GetKeyboardState ] ) ) ;
171171 if ( buffer [ 1 ] === 0 ) {
You can’t perform that action at this time.
0 commit comments