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

This commit is contained in:
randellhodges 2020-01-02 17:50:19 -06:00 committed by Scott Lahteine
parent a2cda631d9
commit c75b560604

View file

@ -358,7 +358,11 @@ void menu_configuration() {
//
#if ENABLED(CASE_LIGHT_MENU)
#if DISABLED(CASE_LIGHT_NO_BRIGHTNESS)
if (PWM_PIN(CASE_LIGHT_PIN))
if (true
#if DISABLED(CASE_LIGHT_USE_NEOPIXEL)
&& PWM_PIN(CASE_LIGHT_PIN)
#endif
)
SUBMENU(MSG_CASE_LIGHT, menu_case_light);
else
#endif