Browse Source

🔧 Fix Neo RGB sanity check (#24146)

Keith Bennett 2 years ago
parent
commit
1a9e8c047b
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/src/inc/SanityCheck.h

+ 2
- 0
Marlin/src/inc/SanityCheck.h View File

@@ -2448,6 +2448,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
2448 2448
 #if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1)
2449 2449
   #ifndef NEO_RGB
2450 2450
     #define NEO_RGB 123
2451
+    #define FAUX_RGB 1
2451 2452
   #endif
2452 2453
   #if defined(NEOPIXEL_TYPE) && NEOPIXEL_TYPE != NEO_RGB
2453 2454
     #error "Your FYSETC/MKS/BTT Mini Panel requires NEOPIXEL_TYPE to be NEO_RGB."
@@ -2456,6 +2457,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
2456 2457
   #endif
2457 2458
   #if FAUX_RGB
2458 2459
     #undef NEO_RGB
2460
+    #undef FAUX_RGB
2459 2461
   #endif
2460 2462
 #elif EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && DISABLED(RGB_LED)
2461 2463
   #error "Your FYSETC Mini Panel requires RGB_LED."

Loading…
Cancel
Save