Browse Source

PWM pin not needed for Neopixel brightness / submenu (#16345)

randellhodges 4 years ago
parent
commit
c75b560604
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/lcd/menu/menu_configuration.cpp

+ 5
- 1
Marlin/src/lcd/menu/menu_configuration.cpp View File

358
   //
358
   //
359
   #if ENABLED(CASE_LIGHT_MENU)
359
   #if ENABLED(CASE_LIGHT_MENU)
360
     #if DISABLED(CASE_LIGHT_NO_BRIGHTNESS)
360
     #if DISABLED(CASE_LIGHT_NO_BRIGHTNESS)
361
-      if (PWM_PIN(CASE_LIGHT_PIN))
361
+      if (true
362
+        #if DISABLED(CASE_LIGHT_USE_NEOPIXEL)
363
+          && PWM_PIN(CASE_LIGHT_PIN)
364
+        #endif
365
+      )
362
         SUBMENU(MSG_CASE_LIGHT, menu_case_light);
366
         SUBMENU(MSG_CASE_LIGHT, menu_case_light);
363
       else
367
       else
364
     #endif
368
     #endif

Loading…
Cancel
Save