Power Loss Recovery with a UPS (#15943)

This commit is contained in:
BigTreeTech
2019-11-21 07:40:21 +08:00
committed by Scott Lahteine
parent ab9f0f2c4f
commit ab8b24fdba
111 changed files with 290 additions and 31 deletions

View File

@ -52,8 +52,13 @@ inline void plr_error(PGM_P const prefix) {
void GcodeSuite::M1000() {
if (recovery.valid()) {
if (parser.seen('S'))
ui.goto_screen(menu_job_recovery);
if (parser.seen('S')) {
#if HAS_LCD_MENU
ui.goto_screen(menu_job_recovery);
#else
SERIAL_ECHO_MSG("Resume requires LCD.");
#endif
}
else
recovery.resume();
}