1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-18 22:05:13 +03:00

Reset when no flashing,remove reset when erase chip is checked

This commit is contained in:
Asizon 2020-12-13 12:46:44 +01:00
parent 1647ca6ec5
commit 0a98eee4b3
3 changed files with 4 additions and 4 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 || GUI.connect_lock)) {
FC.resetState();
}
self.portPickerElement.trigger('change');
}
});