1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Add DFU devices to the port handler (#3991)

* Add DFU devices to the port handler

The firmware flasher ignores it, at this moment. Needs a future PR to use it in place of the actual code that asks permission each time.

* Remove the DFU word in the displayName of the USB devices

some devices contain it in the productName, so better to remove it to not duplicate the name.
This commit is contained in:
Míguel Ángel Mulero Martínez 2024-05-31 17:59:46 +02:00 committed by GitHub
parent 617790b239
commit d0599ae455
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 151 additions and 54 deletions

View file

@ -67,7 +67,7 @@ export function initializeSerialBackend() {
$("div.connect_controls a.connect").on('click', connectDisconnect);
EventBus.$on('port-handler:auto-select-device', function(device) {
EventBus.$on('port-handler:auto-select-serial-device', function(device) {
if (!GUI.connected_to && !GUI.connecting_to
&& ((PortHandler.portPicker.autoConnect && !["manual", "virtual"].includes(device))
|| Date.now() - rebootTimestamp < REBOOT_CONNECT_MAX_TIME_MS)) {