Disable ReverseButtonSettings option by default

This commit is contained in:
Ivan Zorin
2025-03-10 05:42:37 +03:00
parent ce3fea8176
commit ccda1713c1
2 changed files with 6 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
{ 1, 10, 1, 2}, // ProfileCooldownSpeed
{ 0, 12, 1, 0}, // HallEffectSleepTime
{ 0, (tipType_t::TIP_TYPE_MAX - 1) > 0 ? (tipType_t::TIP_TYPE_MAX - 1) : 0, 1, 0}, // SolderingTipType
{ 0, 1, 1, 1}, // ReverseButtonSettings
{ 0, 1, 1, 0}, // ReverseButtonSettings
};
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));

View File

@@ -193,11 +193,11 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
};
// Set buttons actions according to the settings
bool swapButtonsSettings = getSettingValue(SettingsOptions::ReverseButtonSettings);
uint8_t button_enter = swapButtonsSettings ? BUTTON_B_SHORT : BUTTON_F_SHORT;
uint8_t button_enter_long = swapButtonsSettings ? BUTTON_B_LONG : BUTTON_F_LONG;
uint8_t button_next = swapButtonsSettings ? BUTTON_F_SHORT : BUTTON_B_SHORT;
uint8_t button_next_long = swapButtonsSettings ? BUTTON_F_LONG : BUTTON_B_LONG;
bool swapButtonSettings = getSettingValue(SettingsOptions::ReverseButtonSettings);
uint8_t button_enter = swapButtonSettings ? BUTTON_B_SHORT : BUTTON_F_SHORT;
uint8_t button_enter_long = swapButtonSettings ? BUTTON_B_LONG : BUTTON_F_LONG;
uint8_t button_next = swapButtonSettings ? BUTTON_F_SHORT : BUTTON_B_SHORT;
uint8_t button_next_long = swapButtonSettings ? BUTTON_F_LONG : BUTTON_B_LONG;
OperatingMode newMode = OperatingMode::SettingsMenu;
if (BUTTON_NONE == buttons) {