|
@@ -63,13 +63,13 @@ void DGUSRxHandler::ScreenChange(DGUS_VP &vp, void *data_ptr) {
|
63
|
63
|
}
|
64
|
64
|
|
65
|
65
|
if (vp.addr == DGUS_Addr::SCREENCHANGE_Idle
|
66
|
|
- && (printingIsActive() || printingIsPaused())) {
|
|
66
|
+ && (ExtUI::isPrinting() || ExtUI::isPrintingPaused())) {
|
67
|
67
|
dgus_screen_handler.SetStatusMessagePGM(PSTR("Impossible while printing"));
|
68
|
68
|
return;
|
69
|
69
|
}
|
70
|
70
|
|
71
|
71
|
if (vp.addr == DGUS_Addr::SCREENCHANGE_Printing
|
72
|
|
- && (!printingIsActive() && !printingIsPaused())) {
|
|
72
|
+ && (!ExtUI::isPrinting() && !ExtUI::isPrintingPaused())) {
|
73
|
73
|
dgus_screen_handler.SetStatusMessagePGM(PSTR("Impossible while idle"));
|
74
|
74
|
return;
|
75
|
75
|
}
|
|
@@ -166,7 +166,7 @@ void DGUSRxHandler::PrintAbort(DGUS_VP &vp, void *data_ptr) {
|
166
|
166
|
return;
|
167
|
167
|
}
|
168
|
168
|
|
169
|
|
- if (!printingIsActive() && !printingIsPaused()) {
|
|
169
|
+ if (!ExtUI::isPrinting() && !ExtUI::isPrintingPaused()) {
|
170
|
170
|
dgus_screen_handler.TriggerFullUpdate();
|
171
|
171
|
return;
|
172
|
172
|
}
|
|
@@ -183,7 +183,7 @@ void DGUSRxHandler::PrintPause(DGUS_VP &vp, void *data_ptr) {
|
183
|
183
|
return;
|
184
|
184
|
}
|
185
|
185
|
|
186
|
|
- if (!printingIsActive()) {
|
|
186
|
+ if (!ExtUI::isPrinting()) {
|
187
|
187
|
dgus_screen_handler.TriggerFullUpdate();
|
188
|
188
|
return;
|
189
|
189
|
}
|
|
@@ -200,7 +200,7 @@ void DGUSRxHandler::PrintResume(DGUS_VP &vp, void *data_ptr) {
|
200
|
200
|
return;
|
201
|
201
|
}
|
202
|
202
|
|
203
|
|
- if (!printingIsPaused()) {
|
|
203
|
+ if (!ExtUI::isPrintingPaused()) {
|
204
|
204
|
dgus_screen_handler.TriggerFullUpdate();
|
205
|
205
|
return;
|
206
|
206
|
}
|
|
@@ -984,20 +984,11 @@ void DGUSRxHandler::WaitAbort(DGUS_VP &vp, void *data_ptr) {
|
984
|
984
|
return;
|
985
|
985
|
}
|
986
|
986
|
|
987
|
|
- if (!printingIsPaused()
|
988
|
|
- #if ENABLED(ADVANCED_PAUSE_FEATURE)
|
989
|
|
- || !did_pause_print
|
990
|
|
- #endif
|
991
|
|
- ) {
|
|
987
|
+ if (!ExtUI::isPrintingPaused()) {
|
992
|
988
|
dgus_screen_handler.TriggerFullUpdate();
|
993
|
989
|
return;
|
994
|
990
|
}
|
995
|
991
|
|
996
|
|
- #if ENABLED(ADVANCED_PAUSE_FEATURE)
|
997
|
|
- did_pause_print = 0;
|
998
|
|
- #endif
|
999
|
|
-
|
1000
|
|
- ExtUI::setUserConfirmed();
|
1001
|
992
|
ExtUI::stopPrint();
|
1002
|
993
|
|
1003
|
994
|
dgus_screen_handler.TriggerFullUpdate();
|