Skip to content

Commit ee52ba8

Browse files
committed
No constraints
1 parent 0556699 commit ee52ba8

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
@@ -588,11 +588,9 @@ function setRtc() {
588588
function finishOpen() {
589589
CONFIGURATOR.connectionValid = true;
590590

591-
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
592-
if (getConfig("cliOnlyMode")?.cliOnlyMode) {
593-
connectCli();
594-
return;
595-
}
591+
if (getConfig("cliOnlyMode")?.cliOnlyMode) {
592+
connectCli();
593+
return;
596594
}
597595

598596
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_45) && FC.CONFIG.buildOptions.length) {
@@ -661,10 +659,7 @@ function onConnect() {
661659
.show();
662660

663661
const isCliOnlyMode =
664-
semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47) &&
665-
getConfig("cliOnlyMode")?.cliOnlyMode &&
666-
GUI.allowedTabs.length === 1 &&
667-
GUI.allowedTabs[0] === "cli";
662+
getConfig("cliOnlyMode")?.cliOnlyMode && GUI.allowedTabs.length === 1 && GUI.allowedTabs[0] === "cli";
668663

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

0 commit comments

Comments
 (0)