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:
parent
617790b239
commit
d0599ae455
7 changed files with 151 additions and 54 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue