Browse Source

Fix M355 with NEOPIXEL (#21200)

vanilla_fb_2.0.x
Fabio Viappiani 4 years ago
committed by Scott Lahteine
parent
commit
3a5ac12321
  1. 10
      Marlin/src/gcode/feature/caselight/M355.cpp

10
Marlin/src/gcode/feature/caselight/M355.cpp

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

Loading…
Cancel
Save