Skip to content

Commit eb4a7b4

Browse files
committed
No constraints
1 parent 45e4a1f commit eb4a7b4

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/js/serial_backend.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -562,11 +562,9 @@ function setRtc() {
562562
function finishOpen() {
563563
CONFIGURATOR.connectionValid = true;
564564

565-
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
566-
if (getConfig("cliOnlyMode")?.cliOnlyMode) {
567-
connectCli();
568-
return;
569-
}
565+
if (getConfig("cliOnlyMode")?.cliOnlyMode) {
566+
connectCli();
567+
return;
570568
}
571569

572570
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_45) && FC.CONFIG.buildOptions.length) {
@@ -635,10 +633,7 @@ function onConnect() {
635633
.show();
636634

637635
const isCliOnlyMode =
638-
semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47) &&
639-
getConfig("cliOnlyMode")?.cliOnlyMode &&
640-
GUI.allowedTabs.length === 1 &&
641-
GUI.allowedTabs[0] === "cli";
636+
getConfig("cliOnlyMode")?.cliOnlyMode && GUI.allowedTabs.length === 1 && GUI.allowedTabs[0] === "cli";
642637

643638
if (FC.CONFIG.flightControllerVersion !== "" && !isCliOnlyMode) {
644639
FC.FEATURE_CONFIG.features = new Features(FC.CONFIG);

0 commit comments

Comments
 (0)