Skip to content

Commit 385c07b

Browse files
committed
Filter list
1 parent ebd37ce commit 385c07b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

android/app/src/main/java/betaflight/configurator/protocols/ble/BetaflightBlePlugin.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public class BetaflightBlePlugin extends Plugin {
8282
"0000abf1-0000-1000-8000-00805f9b34fb", "0000abf2-0000-1000-8000-00805f9b34fb");
8383
addDevice("DroneBridge", "0000db32-0000-1000-8000-00805f9b34fb",
8484
"0000db33-0000-1000-8000-00805f9b34fb", "0000db34-0000-1000-8000-00805f9b34fb");
85+
// Extra name aliases that map to known profiles (helps when service UUIDs aren't advertised)
86+
KNOWN_DEVICES_BY_NAME.put("speedybee f7v3", KNOWN_DEVICES.get("0000abf0-0000-1000-8000-00805f9b34fb"));
87+
KNOWN_DEVICES_BY_NAME.put("speedybee", KNOWN_DEVICES.get("0000abf0-0000-1000-8000-00805f9b34fb"));
8588
}
8689

8790
private static void addDevice(String name, String service, String write, String notify) {
@@ -504,11 +507,6 @@ private KnownDevice findProfileForResult(ScanResult result, boolean allowNameMat
504507
return KNOWN_DEVICES_BY_NAME.get(name);
505508
}
506509
}
507-
508-
// As a last resort, accept the first known profile to allow manual connect attempts
509-
if (!KNOWN_DEVICES.isEmpty()) {
510-
return KNOWN_DEVICES.values().iterator().next();
511-
}
512510
}
513511

514512
return null;

src/js/port_handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ PortHandler.sortPorts = function (ports) {
208208
};
209209

210210
PortHandler.selectActivePort = function (suggestedDevice = false) {
211-
const deviceFilter = ["AT32", "CP210", "SPR", "STM"];
211+
const deviceFilter = ["AT32", "CP210", "SPR", "STM", "SpeedyBee", "Nordic NRF"]; // include common BLE display names
212212
let selectedPort;
213213

214214
// First check for active connections

0 commit comments

Comments
 (0)