🔧 Fix Neo RGB sanity check (#24146)
This commit is contained in:
parent
31c87adba8
commit
a7e4061d12
@ -2355,6 +2355,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
|||||||
#if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1)
|
#if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1)
|
||||||
#ifndef NEO_RGB
|
#ifndef NEO_RGB
|
||||||
#define NEO_RGB 123
|
#define NEO_RGB 123
|
||||||
|
#define FAUX_RGB 1
|
||||||
#endif
|
#endif
|
||||||
#if defined(NEOPIXEL_TYPE) && NEOPIXEL_TYPE != NEO_RGB
|
#if defined(NEOPIXEL_TYPE) && NEOPIXEL_TYPE != NEO_RGB
|
||||||
#error "Your FYSETC/MKS/BTT Mini Panel requires NEOPIXEL_TYPE to be NEO_RGB."
|
#error "Your FYSETC/MKS/BTT Mini Panel requires NEOPIXEL_TYPE to be NEO_RGB."
|
||||||
@ -2363,6 +2364,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
|||||||
#endif
|
#endif
|
||||||
#if FAUX_RGB
|
#if FAUX_RGB
|
||||||
#undef NEO_RGB
|
#undef NEO_RGB
|
||||||
|
#undef FAUX_RGB
|
||||||
#endif
|
#endif
|
||||||
#elif EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && DISABLED(RGB_LED)
|
#elif EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && DISABLED(RGB_LED)
|
||||||
#error "Your FYSETC Mini Panel requires RGB_LED."
|
#error "Your FYSETC Mini Panel requires RGB_LED."
|
||||||
|
Loading…
Reference in New Issue
Block a user