mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Improving hardwareId behavior
Fix indendation Add css changes Change hiden to reset data aproach Add semicolons
This commit is contained in:
parent
8b006c48db
commit
1647ca6ec5
3 changed files with 12 additions and 12 deletions
|
@ -90,9 +90,6 @@ 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');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -775,6 +775,7 @@ STM32DFU_protocol.prototype.upload_procedure = function (step) {
|
|||
for (var j = 0; j < self.flash_layout.sectors[i].num_pages; j++) {
|
||||
if (self.options.erase_chip) {
|
||||
// full chip erase
|
||||
FC.resetState();
|
||||
erase_pages.push({'sector': i, 'page': j});
|
||||
} else {
|
||||
// local erase
|
||||
|
@ -1074,6 +1075,8 @@ STM32DFU_protocol.prototype.leave = function () {
|
|||
STM32DFU_protocol.prototype.cleanup = function () {
|
||||
const self = this;
|
||||
|
||||
FC.resetState();
|
||||
|
||||
self.releaseInterface(0);
|
||||
|
||||
GUI.connect_lock = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue