From a901b530e05708067af1633a8f560c9289c3e834 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Wed, 23 Jul 2025 20:46:41 +0200 Subject: [PATCH] Require HAVE_LCD_SLEEP when HAVE_LCD_SLEEP_SETTING is defined Change-Id: I5429c538b8c46ab857100f3a290c4241c8991038 --- firmware/export/config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/export/config.h b/firmware/export/config.h index 9196141fe5..182aced416 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -1453,4 +1453,9 @@ Lyre prototype 1 */ other than audio support */ #define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) +/* Trying to enable the setting without the underlying functions doesn't work */ +#if defined(HAVE_LCD_SLEEP_SETTING) && !defined(HAVE_LCD_SLEEP) +#error "HAVE_LCD_SLEEP_SETTING requires HAVE_LCD_SLEEP" +#endif + #endif /* __CONFIG_H__ */