Skip to content

Commit de6b94f

Browse files
authored
Fix BT uncaught and port-picker (#4223)
Fix BT uncaught
1 parent 467b6cc commit de6b94f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
></betaflight-logo>
2929
<port-picker
3030
v-model="PortHandler.portPicker"
31+
:connected-bluetooth-devices="PortHandler.currentBluetoothPorts"
3132
:connected-serial-devices="PortHandler.currentSerialPorts"
3233
:connected-usb-devices="PortHandler.currentUsbPorts"
3334
:show-virtual-option="PortHandler.showVirtualMode"

src/js/protocols/bluetooth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class BT extends EventTarget {
9696
}
9797

9898
async loadDevices() {
99-
const devices = await this.bluetooth.getDevices();
99+
const devices = await this.getDevices();
100100

101101
this.portCounter = 1;
102102
this.devices = devices.map(device => this.createPort(device));

0 commit comments

Comments
 (0)