mirror of
https://github.com/Ralim/IronOS.git
synced 2025-07-23 04:13:01 +02:00
Disable ReverseButtonSettings option by default
This commit is contained in:
@@ -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));
|
||||
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user