Fix "paused" message and M125 called by M25 (#12551)
This commit is contained in:
@ -45,12 +45,7 @@
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
if (recovery.enabled) recovery.save(true, false);
|
||||
#endif
|
||||
card.pauseSDPrint();
|
||||
print_job_timer.pause();
|
||||
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
||||
enqueue_and_echo_commands_P(PSTR("M125"));
|
||||
#endif
|
||||
ui.reset_status();
|
||||
enqueue_and_echo_commands_P(PSTR("M25"));
|
||||
}
|
||||
|
||||
void lcd_sdcard_resume() {
|
||||
|
@ -26,9 +26,7 @@
|
||||
#if HAS_SPI_LCD || ENABLED(MALYAN_LCD) || ENABLED(EXTENSIBLE_UI)
|
||||
#include "ultralcd.h"
|
||||
MarlinUI ui;
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#include "../sd/cardreader.h"
|
||||
#endif
|
||||
#include "../sd/cardreader.h"
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#define START_OF_UTF8_CHAR(C) (((C) & 0xC0u) != 0x80u)
|
||||
#endif
|
||||
@ -1243,7 +1241,7 @@ void MarlinUI::update() {
|
||||
static const char printing[] PROGMEM = MSG_PRINTING;
|
||||
static const char welcome[] PROGMEM = WELCOME_MSG;
|
||||
PGM_P msg;
|
||||
if (print_job_timer.isPaused())
|
||||
if (!IS_SD_PRINTING() && print_job_timer.isPaused())
|
||||
msg = paused;
|
||||
#if ENABLED(SDSUPPORT)
|
||||
else if (IS_SD_PRINTING())
|
||||
@ -1257,4 +1255,4 @@ void MarlinUI::update() {
|
||||
set_status_P(msg, -1);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // HAS_SPI_LCD || EXTENSIBLE_UI
|
||||
|
Reference in New Issue
Block a user