Fix M355 with NEOPIXEL (#21200)

This commit is contained in:
Fabio Viappiani 2021-02-27 00:10:50 +01:00 committed by Scott Lahteine
parent c9d757fc0e
commit 3a5ac12321

View File

@ -60,12 +60,10 @@ void GcodeSuite::M355() {
if (!caselight.on)
SERIAL_ECHOLNPGM(STR_OFF);
else {
#if CASELIGHT_USES_BRIGHTNESS
if (PWM_PIN(CASE_LIGHT_PIN)) {
if (TERN0(CASELIGHT_USES_BRIGHTNESS, TERN(CASE_LIGHT_USE_NEOPIXEL, true, PWM_PIN(CASE_LIGHT_PIN)))) {
SERIAL_ECHOLN(int(caselight.brightness));
return;
}
#endif
SERIAL_ECHOLNPGM(STR_ON);
}
}