mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
parent
85ceabf51f
commit
295e088aa5
12 changed files with 39 additions and 277 deletions
|
@ -11,7 +11,6 @@ import MSPCodes from "./msp/MSPCodes";
|
|||
import PortUsage from "./port_usage";
|
||||
import PortHandler from "./port_handler";
|
||||
import CONFIGURATOR, { API_VERSION_1_45, API_VERSION_1_46 } from "./data_storage";
|
||||
import UI_PHONES from "./phones_ui";
|
||||
import { bit_check } from './bit.js';
|
||||
import { sensor_status, have_sensor } from "./sensor_helpers";
|
||||
import { update_dataflash_global } from "./update_dataflash_global";
|
||||
|
@ -163,10 +162,6 @@ function connectDisconnect() {
|
|||
}
|
||||
|
||||
function finishClose(finishedCallback) {
|
||||
if (GUI.isCordova()) {
|
||||
UI_PHONES.reset();
|
||||
}
|
||||
|
||||
const wasConnected = CONFIGURATOR.connectionValid;
|
||||
tracking.sendEvent(tracking.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'Disconnected', { time: connectionTimestamp ? Date.now() - connectionTimestamp : undefined});
|
||||
|
||||
|
@ -574,10 +569,6 @@ function finishOpen() {
|
|||
GUI.allowedTabs = Array.from(GUI.defaultAllowedFCTabsWhenConnected);
|
||||
}
|
||||
|
||||
if (GUI.isCordova()) {
|
||||
UI_PHONES.reset();
|
||||
}
|
||||
|
||||
onConnect();
|
||||
|
||||
GUI.selectDefaultTabWhenConnected();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue