diff --git a/product-status.md b/product-status.md index 1da4e4fae..257a3070b 100644 --- a/product-status.md +++ b/product-status.md @@ -32,6 +32,7 @@ Chrysalis requires a browser with WebSerial support. Right now, this means Chrom ## Recent updates +- Fixes for an incorrect error that we couldn't talk to your keyboard after a firmware update - Chrysalis will now back up your configuration as a download every time you update your firmware - "Report an issue" now provides system logs for reports - Corrections for some incorrect key identifiers, particularly for dynamic macros diff --git a/src/api/focus.js b/src/api/focus.js index 02038f225..979980674 100644 --- a/src/api/focus.js +++ b/src/api/focus.js @@ -182,6 +182,7 @@ class Focus { async open(port, deviceDescriptor) { this._port = port; + if (!deviceDescriptor) throw new Error("Device descriptor argument is mandatory"); const info = this._port.getInfo(); @@ -196,6 +197,7 @@ class Focus { ) { this.in_bootloader = true; } + this.focusDeviceDescriptor = deviceDescriptor; this.resetDeviceState(); @@ -207,6 +209,7 @@ class Focus { this._port = null; this._parser = null; this.focusDeviceDescriptor = null; + this.in_bootloader = false; this.resetDeviceState(); }