Skip to content

Commit 65f97b7

Browse files
author
philmoz
committed
Companion fix.
1 parent 3244844 commit 65f97b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

companion/src/firmwares/edgetx/yaml_generalsettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ Node convert<GeneralSettings>::encode(const GeneralSettings& rhs)
386386
node["modelCustomScriptsDisabled"] = (int)rhs.modelCustomScriptsDisabled;
387387
node["modelTelemetryDisabled"] = (int)rhs.modelTelemetryDisabled;
388388

389-
if (hasColorLcd && VERSION_MAJOR > 2) {
389+
if (hasColorLcd) {
390390
for (int i = 0; i < MAX_KEYSHORTCUTS; i += 1)
391391
if (rhs.keyShortcuts[i] != GeneralSettings::QM_NONE)
392392
node["keyShortcuts"][std::to_string(i)]["shortcut"] = QMPageLut << rhs.keyShortcuts[i];

companion/src/firmwares/generalsettings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,9 +1092,9 @@ void GeneralSettings::setDefaultFavorites()
10921092
void GeneralSettings::setDefaultKeyShortcuts()
10931093
{
10941094
keyShortcuts[0] = QM_MODEL_SETUP; // MDL short
1095-
keyShortcuts[1] = (VERSION_MAJOR == 2) ? QM_TOOLS_APPS : QM_OPEN_QUICK_MENU; // SYS short
1095+
keyShortcuts[1] = QM_OPEN_QUICK_MENU; // SYS short
10961096
keyShortcuts[2] = QM_UI_SCREEN1; // TELE short
10971097
keyShortcuts[3] = QM_MANAGE_MODELS; // MDL long
1098-
keyShortcuts[4] = (VERSION_MAJOR == 2) ? QM_RADIO_SETUP : QM_TOOLS_APPS; // SYS long
1098+
keyShortcuts[4] = QM_TOOLS_APPS; // SYS long
10991099
keyShortcuts[5] = QM_TOOLS_CHAN_MON; // TELE long
11001100
}

0 commit comments

Comments
 (0)