Back to Status after Resuming
This commit is contained in:
parent
583993b7e2
commit
d6c6517fcd
|
|
@ -899,6 +899,9 @@ void lcdui_print_status_line(void)
|
||||||
lcd_print(' ');
|
lcd_print(' ');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case CustomMsg::Resuming: //Resuming
|
||||||
|
lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -6537,12 +6540,13 @@ void lcd_resume_print()
|
||||||
lcd_setstatuspgm(_T(MSG_FINISHING_MOVEMENTS));
|
lcd_setstatuspgm(_T(MSG_FINISHING_MOVEMENTS));
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
|
||||||
lcd_setstatuspgm(_T(MSG_RESUMING_PRINT)); ////MSG_RESUMING_PRINT c=20
|
custom_message_type = CustomMsg::Resuming;
|
||||||
isPrintPaused = false;
|
isPrintPaused = false;
|
||||||
restore_print_from_ram_and_continue(default_retraction);
|
restore_print_from_ram_and_continue(default_retraction);
|
||||||
pause_time += (_millis() - start_pause_print); //accumulate time when print is paused for correct statistics calculation
|
pause_time += (_millis() - start_pause_print); //accumulate time when print is paused for correct statistics calculation
|
||||||
refresh_cmd_timeout();
|
refresh_cmd_timeout();
|
||||||
SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_RESUMED); //resume octoprint
|
SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_RESUMED); //resume octoprint
|
||||||
|
custom_message_type = CustomMsg::Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void change_sheet()
|
static void change_sheet()
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,7 @@ enum class CustomMsg : uint_least8_t
|
||||||
TempCompPreheat, //!< Temperature compensation preheat
|
TempCompPreheat, //!< Temperature compensation preheat
|
||||||
M0Wait, //!< M0/M1 Wait command working even from SD
|
M0Wait, //!< M0/M1 Wait command working even from SD
|
||||||
MsgUpdate, //!< Short message even while printing from SD
|
MsgUpdate, //!< Short message even while printing from SD
|
||||||
|
Resuming, //!< Resuming message
|
||||||
};
|
};
|
||||||
|
|
||||||
extern CustomMsg custom_message_type;
|
extern CustomMsg custom_message_type;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue