diff --git a/Marlin/src/core/macros.h b/Marlin/src/core/macros.h index ca736ba9a9..c20cd17a7e 100644 --- a/Marlin/src/core/macros.h +++ b/Marlin/src/core/macros.h @@ -750,5 +750,5 @@ #define _UI_MKS 104 #define _UI_RELOADED 105 #define _UI_IA_CREALITY 106 -#define _DGUS_UI_IS(N) || (DGUS_LCD_UI == _UI_ ## N) +#define _DGUS_UI_IS(N) || (CAT(_UI_, DGUS_LCD_UI) == CAT(_UI_, N)) #define DGUS_UI_IS(V...) (0 MAP(_DGUS_UI_IS, V))