Skip to content

Commit

Permalink
Fix BT uncaught and port-picker (#4223)
Browse files Browse the repository at this point in the history
Fix BT uncaught
  • Loading branch information
haslinghuis authored Oct 25, 2024
1 parent 467b6cc commit de6b94f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
></betaflight-logo>
<port-picker
v-model="PortHandler.portPicker"
:connected-bluetooth-devices="PortHandler.currentBluetoothPorts"
:connected-serial-devices="PortHandler.currentSerialPorts"
:connected-usb-devices="PortHandler.currentUsbPorts"
:show-virtual-option="PortHandler.showVirtualMode"
Expand Down
2 changes: 1 addition & 1 deletion src/js/protocols/bluetooth.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class BT extends EventTarget {
}

async loadDevices() {
const devices = await this.bluetooth.getDevices();
const devices = await this.getDevices();

this.portCounter = 1;
this.devices = devices.map(device => this.createPort(device));
Expand Down

0 comments on commit de6b94f

Please sign in to comment.