@@ -86,6 +86,7 @@ float pause_z = 0;
86
86
float pause_e = 0 ;
87
87
bool sdcard_pause_check = true ;
88
88
bool pause_action_flag = false ;
89
+ bool had_filament_runout = false ;
89
90
bool probe_offset_flag = false ;
90
91
91
92
millis_t next_rts_update_ms = 0 ;
@@ -822,6 +823,7 @@ void RTSSHOW::RTS_HandleData()
822
823
rtscheck.change_page (DWINTouchPage::PRINT_PROGRESS_RUNNING);
823
824
}
824
825
break ;
826
+
825
827
case ResumePrintKey:
826
828
// This is apparently triggered when the resume option is pressed
827
829
if (recdat.data [0 ] == 1 /* Resume*/ ) {
@@ -846,8 +848,10 @@ void RTSSHOW::RTS_HandleData()
846
848
thermalManager.setTargetHotend (temphot, 0 );
847
849
}
848
850
851
+ had_filament_runout = false ;
849
852
850
853
break ;
854
+
851
855
case ZoffsetEnterKey:
852
856
last_zoffset = probe.offset .z ;
853
857
if (recdat.data [0 ] >= 32768 )
@@ -1530,6 +1534,7 @@ void RTSSHOW::RTS_FilamentRunout() {
1530
1534
1531
1535
sdcard_pause_check = false ;
1532
1536
pause_action_flag = true ;
1537
+ had_filament_runout = true ;
1533
1538
1534
1539
pause_z = current_position[Z_AXIS];
1535
1540
pause_e = current_position[E_AXIS] - 5 ;
@@ -1544,7 +1549,7 @@ void RTSSHOW::RTS_FilamentRunout() {
1544
1549
1545
1550
void RTSSHOW::RTS_FilamentLoaded () {
1546
1551
// "Filament load, please confirm resume print or stop print"
1547
- if (pause_action_flag == true && sdcard_pause_check == false ) {
1552
+ if (pause_action_flag == true && sdcard_pause_check == false && had_filament_runout == true ) {
1548
1553
rtscheck.change_page (DWINTouchPage::ERR_FILAMENTRUNOUT_FILAMENT_LOADED);
1549
1554
1550
1555
// Update icon?
0 commit comments