summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 594b4f6e6f..114952e211 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -558,17 +558,14 @@ Lyre prototype 1 */
#define CONFIG_TUNER_MULTI
#endif
-/* deactivate fading in bootloader */
-#ifdef BOOTLOADER
+/* deactivate fading in bootloader/sim */
+#if defined(BOOTLOADER) || (defined(SIMULATOR) && \
+ (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM || \
+ CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_TARGET))
#undef CONFIG_BACKLIGHT_FADING
#define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
#endif
-#ifdef SIMULATOR
-#undef CONFIG_BACKLIGHT_FADING
-#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
-#endif
-
/* determine which setting/manual text to use */
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM)