Added Menu entry for Case light

This commit is contained in:
Kai
2016-11-19 11:17:39 +01:00
parent 79c8591192
commit 0c341f0c50
3 changed files with 31 additions and 7 deletions

View File

@ -530,6 +530,16 @@ static uint8_t target_extruder;
;
#endif
#if ENABLED(ULTIPANEL) && HAS_CASE_LIGHT
bool case_light_on =
#if ENABLED(CASE_LIGHT_DEFAULT_ON)
true
#else
false
#endif
;
#endif
#if ENABLED(DELTA)
#define SIN_60 0.8660254037844386
@ -7225,11 +7235,6 @@ inline void gcode_M907() {
* P<byte> Set case light brightness (PWM pin required)
*/
inline void gcode_M355() {
static bool case_light_on
#if ENABLED(CASE_LIGHT_DEFAULT_ON)
= true
#endif
;
static uint8_t case_light_brightness = 255;
if (code_seen('P')) case_light_brightness = code_value_byte();
if (code_seen('S')) {