M355 S0, S1 fixes & faster LCD, SD card

fix Travis error
This commit is contained in:
Christopher Pepper authored and Bob-the-Kuhn committed 2017-09-27 19:26:00 -05:00
1 parent 8c622a59cf
commit bea3ec2724
19 files changed
+515 -219

No files matched your search

+8 -2
View File
@@ -43,8 +43,14 @@
void GcodeSuite::M355() {
#if HAS_CASE_LIGHT
uint8_t args = 0;
if (parser.seenval('P')) ++args, case_light_brightness = parser.value_byte();
if (parser.seenval('S')) ++args, case_light_on = parser.value_bool();
if (parser.seenval('P')) {
++args, case_light_brightness = parser.value_byte();
case_light_arg_flag = false;
}
if (parser.seenval('S')) {
++args, case_light_on = parser.value_bool();
case_light_arg_flag = true;
}
if (args) update_case_light();
// always report case light status