AutoReport class (Temperature, Cardreader) (#20913)
This commit is contained in:
@ -92,7 +92,7 @@ void GcodeSuite::M1001() {
|
||||
printerEventLEDs.onPrintCompleted();
|
||||
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_PRINT_DONE)));
|
||||
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT(MSG_PRINT_DONE), CONTINUE_STR));
|
||||
wait_for_user_response(1000UL * TERN(HAS_LCD_MENU, PE_LEDS_COMPLETED_TIME, 30));
|
||||
wait_for_user_response(SEC_TO_MS(TERN(HAS_LCD_MENU, PE_LEDS_COMPLETED_TIME, 30)));
|
||||
printerEventLEDs.onResumeAfterWait();
|
||||
}
|
||||
#endif
|
||||
|
@ -36,15 +36,17 @@ void GcodeSuite::M27() {
|
||||
if (parser.seen('C')) {
|
||||
SERIAL_ECHOPGM("Current file: ");
|
||||
card.printFilename();
|
||||
return;
|
||||
}
|
||||
|
||||
#if ENABLED(AUTO_REPORT_SD_STATUS)
|
||||
else if (parser.seenval('S'))
|
||||
card.set_auto_report_interval(parser.value_byte());
|
||||
if (parser.seenval('S')) {
|
||||
card.auto_reporter.set_interval(parser.value_byte());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
else
|
||||
card.report_status();
|
||||
card.report_status();
|
||||
}
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
Reference in New Issue
Block a user