1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Remove hardwareId when checks for usb devices

This commit is contained in:
Asizon 2020-12-08 11:56:48 +01:00
parent 67be78325f
commit 883bb9c53f
2 changed files with 3 additions and 3 deletions

View file

@ -90,6 +90,9 @@ PortHandler.check_usb_devices = function (callback) {
callback(self.dfu_available);
}
if (!$('option:selected', self.portPickerElement).data().isDFU) {
if (!GUI.connected_to) {
FC.resetState();
}
self.portPickerElement.trigger('change');
}
});

View file

@ -163,9 +163,6 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
console.log('no flash bootloader detected');
rebootMode = 1; // MSP_REBOOT_BOOTLOADER_ROM;
}
if (!GUI.connected_to) {
FC.resetState();
}
var buffer = [];
buffer.push8(rebootMode);