Fabio Viappiani
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
6 deletions
-
Marlin/src/gcode/feature/caselight/M355.cpp
|
|
@ -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)) { |
|
|
|
SERIAL_ECHOLN(int(caselight.brightness)); |
|
|
|
return; |
|
|
|
} |
|
|
|
#endif |
|
|
|
if (TERN0(CASELIGHT_USES_BRIGHTNESS, TERN(CASE_LIGHT_USE_NEOPIXEL, true, PWM_PIN(CASE_LIGHT_PIN)))) { |
|
|
|
SERIAL_ECHOLN(int(caselight.brightness)); |
|
|
|
return; |
|
|
|
} |
|
|
|
SERIAL_ECHOLNPGM(STR_ON); |
|
|
|
} |
|
|
|
} |
|
|
|