6262 #include " ../lcd/extui/ui_api.h"
6363#elif ENABLED(DWIN_LCD_PROUI)
6464 #include " ../lcd/e3v2/proui/dwin.h"
65+ #elif ENABLED(RTS_AVAILABLE)
66+ #include " ../lcd/sv06p/LCD_RTS.h"
6567#endif
6668
6769#include " ../lcd/marlinui.h"
@@ -147,7 +149,18 @@ static bool ensure_safe_temperature(const bool wait=true, const PauseMode mode=P
147149 #endif
148150
149151 ui.pause_show_message (PAUSE_MESSAGE_HEATING, mode); UNUSED (mode);
150-
152+ #if ENABLED(RTS_AVAILABLE)
153+ if (Mode_flag)
154+ {
155+ rtscheck.RTS_SndData (ExchangePageBase + 7 , ExchangepageAddr);
156+ }
157+ else
158+ {
159+ rtscheck.RTS_SndData (ExchangePageBase + 62 , ExchangepageAddr);
160+ }
161+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].celsius , HEAD0_CURRENT_TEMP_VP);
162+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].target , HEAD0_SET_TEMP_VP);
163+ #endif
151164 if (wait) return thermalManager.wait_for_hotend (active_extruder);
152165
153166 // Allow interruption by Emergency Parser M108
@@ -275,6 +288,19 @@ bool load_filament(const_float_t slow_load_length/*=0*/, const_float_t fast_load
275288 // "Wait for filament purge"
276289 if (show_lcd) ui.pause_show_message (PAUSE_MESSAGE_PURGE);
277290
291+ #if ENABLED(RTS_AVAILABLE)
292+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].celsius , HEAD0_CURRENT_TEMP_VP);
293+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].target , HEAD0_SET_TEMP_VP);
294+ if (Mode_flag)
295+ {
296+ rtscheck.RTS_SndData (ExchangePageBase + 43 , ExchangepageAddr);
297+ }
298+ else
299+ {
300+ rtscheck.RTS_SndData (ExchangePageBase + 98 , ExchangepageAddr);
301+ }
302+ #endif
303+
278304 // Extrude filament to get into hotend
279305 unscaled_e_move (purge_length, ADVANCED_PAUSE_PURGE_FEEDRATE);
280306 }
@@ -290,6 +316,16 @@ bool load_filament(const_float_t slow_load_length/*=0*/, const_float_t fast_load
290316 ui.pause_show_message (PAUSE_MESSAGE_OPTION); // Also sets PAUSE_RESPONSE_WAIT_FOR
291317 #else
292318 pause_menu_response = PAUSE_RESPONSE_WAIT_FOR;
319+ #if ENABLED(RTS_AVAILABLE)
320+ if (Mode_flag)
321+ {
322+ rtscheck.RTS_SndData (ExchangePageBase + 44 , ExchangepageAddr);
323+ }
324+ else
325+ {
326+ rtscheck.RTS_SndData (ExchangePageBase + 100 , ExchangepageAddr);
327+ }
328+ #endif
293329 #endif
294330 while (pause_menu_response == PAUSE_RESPONSE_WAIT_FOR) idle_no_sleep ();
295331 }
@@ -352,6 +388,19 @@ bool unload_filament(const_float_t unload_length, const bool show_lcd/*=false*/,
352388 }
353389
354390 if (show_lcd) ui.pause_show_message (PAUSE_MESSAGE_UNLOAD, mode);
391+
392+ #if ENABLED(RTS_AVAILABLE)
393+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].celsius , HEAD0_CURRENT_TEMP_VP);
394+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].target , HEAD0_SET_TEMP_VP);
395+ if (Mode_flag)
396+ {
397+ rtscheck.RTS_SndData (ExchangePageBase + 16 , ExchangepageAddr);
398+ }
399+ else
400+ {
401+ rtscheck.RTS_SndData (ExchangePageBase + 71 , ExchangepageAddr);
402+ }
403+ #endif
355404
356405 // Retract filament
357406 unscaled_e_move (-(FILAMENT_UNLOAD_PURGE_RETRACT) * mix_multiplier, (PAUSE_PARK_RETRACT_FEEDRATE) * mix_multiplier);
@@ -503,6 +552,19 @@ void show_continue_prompt(const bool is_reload) {
503552 DEBUG_ECHOLNPGM (" ... is_reload:" , is_reload);
504553
505554 ui.pause_show_message (is_reload ? PAUSE_MESSAGE_INSERT : PAUSE_MESSAGE_WAITING);
555+ #if ENABLED(RTS_AVAILABLE)
556+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].celsius , HEAD0_CURRENT_TEMP_VP);
557+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].target , HEAD0_SET_TEMP_VP);
558+ if (Mode_flag)
559+ {
560+ rtscheck.RTS_SndData (ExchangePageBase + 17 , ExchangepageAddr);
561+ }
562+ else
563+ {
564+ rtscheck.RTS_SndData (ExchangePageBase + 72 , ExchangepageAddr);
565+ }
566+ rtscheck.RTS_SndData (Beep, SoundAddr);
567+ #endif
506568 SERIAL_ECHO_START ();
507569 SERIAL_ECHOF (is_reload ? F (_PMSG (STR_FILAMENT_CHANGE_INSERT) " \n " ) : F (_PMSG (STR_FILAMENT_CHANGE_WAIT) " \n " ));
508570}
@@ -544,6 +606,18 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
544606 // re-heat the nozzle, re-show the continue prompt, restart idle timers, start over
545607 if (nozzle_timed_out) {
546608 ui.pause_show_message (PAUSE_MESSAGE_HEAT);
609+ #if ENABLED(RTS_AVAILABLE)
610+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].celsius , HEAD0_CURRENT_TEMP_VP);
611+ rtscheck.RTS_SndData (thermalManager.temp_hotend [0 ].target , HEAD0_SET_TEMP_VP);
612+ if (Mode_flag)
613+ {
614+ rtscheck.RTS_SndData (ExchangePageBase + 45 , ExchangepageAddr);
615+ }
616+ else
617+ {
618+ rtscheck.RTS_SndData (ExchangePageBase + 99 , ExchangepageAddr);
619+ }
620+ #endif
547621 SERIAL_ECHO_MSG (_PMSG (STR_FILAMENT_CHANGE_HEAT));
548622
549623 TERN_ (HOST_PROMPT_SUPPORT, hostui.prompt_do (PROMPT_USER_CONTINUE, GET_TEXT_F (MSG_HEATER_TIMEOUT), GET_TEXT_F (MSG_REHEAT)));
@@ -687,6 +761,26 @@ void resume_print(const_float_t slow_load_length/*=0*/, const_float_t fast_load_
687761 planner.set_e_position_mm ((destination.e = current_position.e = resume_position.e ));
688762
689763 ui.pause_show_message (PAUSE_MESSAGE_STATUS);
764+ #if ENABLED(RTS_AVAILABLE)
765+ if (Mode_flag && pause_flag == 0 )
766+ {
767+ rtscheck.RTS_SndData (1 , Time_VP);
768+ rtscheck.RTS_SndData (ExchangePageBase + 11 , ExchangepageAddr);
769+ }
770+ else if (!Mode_flag && !pause_flag == 0 )
771+ {
772+ rtscheck.RTS_SndData (1 , Time1_VP);
773+ rtscheck.RTS_SndData (ExchangePageBase + 66 , ExchangepageAddr);
774+ }
775+ else if (Mode_flag && pause_flag == 1 )
776+ {
777+ rtscheck.RTS_SndData (ExchangePageBase + 12 , ExchangepageAddr);
778+ }
779+ else if (!Mode_flag && pause_flag == 1 )
780+ {
781+ rtscheck.RTS_SndData (ExchangePageBase + 67 , ExchangepageAddr);
782+ }
783+ #endif
690784
691785 #ifdef ACTION_ON_RESUMED
692786 hostui.resumed ();
0 commit comments