Add LCD_SET_PROGRESS_MANUALLY
This commit is contained in:
parent
23dbaaf03b
commit
5f708d47ce
31 changed files with 164 additions and 34 deletions
|
|
@ -6022,7 +6022,7 @@ inline void gcode_G92() {
|
|||
#if ENABLED(ULTIPANEL)
|
||||
if (lcd_detected()) {
|
||||
while (wait_for_user) idle();
|
||||
IS_SD_PRINTING ? LCD_MESSAGEPGM(MSG_RESUMING) : LCD_MESSAGEPGM(WELCOME_MSG);
|
||||
print_job_timer.isPaused() ? LCD_MESSAGEPGM(WELCOME_MSG) : LCD_MESSAGEPGM(MSG_RESUMING);
|
||||
}
|
||||
#else
|
||||
while (wait_for_user) idle();
|
||||
|
|
@ -7241,6 +7241,24 @@ inline void gcode_M42() {
|
|||
|
||||
#endif // AUTO_BED_LEVELING_UBL && UBL_G26_MESH_VALIDATION
|
||||
|
||||
#if ENABLED(ULTRA_LCD) && ENABLED(LCD_SET_PROGRESS_MANUALLY)
|
||||
/**
|
||||
* M73: Set percentage complete (for display on LCD)
|
||||
*
|
||||
* Example:
|
||||
* M73 P25 ; Set progress to 25%
|
||||
*
|
||||
* Notes:
|
||||
* This has no effect during an SD print job
|
||||
*/
|
||||
inline void gcode_M73() {
|
||||
if (!IS_SD_PRINTING && parser.seen('P')) {
|
||||
progress_bar_percent = parser.value_byte();
|
||||
NOMORE(progress_bar_percent, 100);
|
||||
}
|
||||
}
|
||||
#endif // ULTRA_LCD && LCD_SET_PROGRESS_MANUALLY
|
||||
|
||||
/**
|
||||
* M75: Start print timer
|
||||
*/
|
||||
|
|
@ -11090,6 +11108,11 @@ void process_next_command() {
|
|||
break;
|
||||
#endif // AUTO_BED_LEVELING_UBL && UBL_G26_MESH_VALIDATION
|
||||
|
||||
#if ENABLED(ULTRA_LCD) && ENABLED(LCD_SET_PROGRESS_MANUALLY)
|
||||
case 73: // M73: Set print progress percentage
|
||||
gcode_M73(); break;
|
||||
#endif
|
||||
|
||||
case 75: // M75: Start print timer
|
||||
gcode_M75(); break;
|
||||
case 76: // M76: Pause print timer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue