@@ -516,7 +516,7 @@ void menuRadioHardware(event_t event)
516
516
flags = menuHorizontalPosition == 2 ? attr : 0 ;
517
517
bool potinversion = getPotInversion (idx);
518
518
lcdDrawChar (LCD_W - 8 , y, potinversion ? 127 : 126 , flags);
519
- if (flags & (~RIGHT)) potinversion = checkIncDec (event, potinversion, 0 , 1 , ( isModelMenuDisplayed ()) ? EE_MODEL : EE_GENERAL);
519
+ if (flags & (~RIGHT)) potinversion = checkIncDec (event, potinversion, 0 , 1 , EE_GENERAL);
520
520
setPotInversion (idx, potinversion);
521
521
} else if (getPotInversion (idx)) {
522
522
setPotInversion (idx, 0 );
@@ -537,7 +537,7 @@ void menuRadioHardware(event_t event)
537
537
flags = menuHorizontalPosition == 0 ? attr : 0 ;
538
538
auto source = switchGetFlexConfig (index );
539
539
lcdDrawText (HW_SETTINGS_COLUMN1, y, (source < 0 ) ? STR_NONE : adcGetInputLabel (ADC_INPUT_FLEX, source), flags);
540
- if (flags & (~RIGHT)) source = checkIncDec (event, source, -1 , adcGetMaxInputs (ADC_INPUT_FLEX) - 1 , ( isModelMenuDisplayed ()) ? EE_MODEL : EE_GENERAL, isFlexSwitchSourceValid);
540
+ if (flags & (~RIGHT)) source = checkIncDec (event, source, -1 , adcGetMaxInputs (ADC_INPUT_FLEX) - 1 , EE_GENERAL, isFlexSwitchSourceValid);
541
541
switchConfigFlex (index , source);
542
542
543
543
// Name
@@ -561,6 +561,7 @@ void menuRadioHardware(event_t event)
561
561
g_eeGeneral.switchConfig =
562
562
(g_eeGeneral.switchConfig & ~mask) |
563
563
((swconfig_t (config) & SW_CFG_MASK) << (SW_CFG_BITS * index ));
564
+ storageDirty (EE_GENERAL);
564
565
}
565
566
}
566
567
else {
@@ -584,6 +585,7 @@ void menuRadioHardware(event_t event)
584
585
g_eeGeneral.switchConfig =
585
586
(g_eeGeneral.switchConfig & ~mask) |
586
587
((swconfig_t (config) & SW_CFG_MASK) << (SW_CFG_BITS * index ));
588
+ storageDirty (EE_GENERAL);
587
589
}
588
590
}
589
591
} else if (k <= ITEM_RADIO_HARDWARE_SERIAL_PORT_END) {
0 commit comments