File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -562,11 +562,9 @@ function setRtc() {
562
562
function finishOpen ( ) {
563
563
CONFIGURATOR . connectionValid = true ;
564
564
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 ;
570
568
}
571
569
572
570
if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_45 ) && FC . CONFIG . buildOptions . length ) {
@@ -635,10 +633,7 @@ function onConnect() {
635
633
. show ( ) ;
636
634
637
635
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" ;
642
637
643
638
if ( FC . CONFIG . flightControllerVersion !== "" && ! isCliOnlyMode ) {
644
639
FC . FEATURE_CONFIG . features = new Features ( FC . CONFIG ) ;
You can’t perform that action at this time.
0 commit comments