Add missing ExtUI user confirmation (#14992)
This commit is contained in:
		
				
					committed by
					
						 Scott Lahteine
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							33d54c0d5a
						
					
				
				
					commit
					af5a7a2925
				
			| @@ -187,6 +187,9 @@ bool load_filament(const float &slow_load_length/*=0*/, const float &fast_load_l | ||||
|       host_action_prompt_button(PSTR("Continue")); | ||||
|       host_action_prompt_show(); | ||||
|     #endif | ||||
|     #if ENABLED(EXTENSIBLE_UI) | ||||
|       ExtUI::onStatusChanged(PSTR("Load Filament")); | ||||
|     #endif | ||||
|     while (wait_for_user) { | ||||
|       #if HAS_BUZZER | ||||
|         filament_change_beep(max_beep_count); | ||||
| @@ -239,6 +242,9 @@ bool load_filament(const float &slow_load_length/*=0*/, const float &fast_load_l | ||||
|     #if ENABLED(HOST_PROMPT_SUPPORT) | ||||
|       host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Continuous Purge Running..."), PSTR("Continue")); | ||||
|     #endif | ||||
|     #if ENABLED(EXTENSIBLE_UI) | ||||
|       ExtUI::onStatusChanged(PSTR("Continuous Purge Running...")); | ||||
|     #endif | ||||
|     for (float purge_count = purge_length; purge_count > 0 && wait_for_user; --purge_count) | ||||
|       do_pause_e_move(1, ADVANCED_PAUSE_PURGE_FEEDRATE); | ||||
|     wait_for_user = false; | ||||
| @@ -517,6 +523,9 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep | ||||
|   #if ENABLED(HOST_PROMPT_SUPPORT) | ||||
|     host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Nozzle Parked"), PSTR("Continue")); | ||||
|   #endif | ||||
|   #if ENABLED(EXTENSIBLE_UI) | ||||
|     ExtUI::onStatusChanged(PSTR("Nozzle Parked")); | ||||
|   #endif | ||||
|   while (wait_for_user) { | ||||
|     #if HAS_BUZZER | ||||
|       filament_change_beep(max_beep_count); | ||||
| @@ -538,6 +547,10 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep | ||||
|         host_prompt_do(PROMPT_USER_CONTINUE, PSTR("HeaterTimeout"), PSTR("Reheat")); | ||||
|       #endif | ||||
|  | ||||
|       #if ENABLED(EXTENSIBLE_UI) | ||||
|         ExtUI::onStatusChanged(PSTR("HeaterTimeout")); | ||||
|       #endif | ||||
|  | ||||
|       // Wait for LCD click or M108 | ||||
|       while (wait_for_user) idle(true); | ||||
|  | ||||
|   | ||||
| @@ -42,6 +42,10 @@ MMU2 mmu2; | ||||
|   #include "../../feature/host_actions.h" | ||||
| #endif | ||||
|  | ||||
| #if ENABLED(EXTENSIBLE_UI) | ||||
|   #include "../../lcd/extensible_ui/ui_api.h" | ||||
| #endif | ||||
|  | ||||
| #define DEBUG_OUT ENABLED(MMU2_DEBUG) | ||||
| #include "../../core/debug_out.h" | ||||
|  | ||||
| @@ -711,6 +715,9 @@ void MMU2::filament_runout() { | ||||
|       #if ENABLED(HOST_PROMPT_SUPPORT) | ||||
|         host_prompt_do(PROMPT_USER_CONTINUE, PSTR("MMU2 Eject Recover"), PSTR("Continue")); | ||||
|       #endif | ||||
|       #if ENABLED(EXTENSIBLE_UI) | ||||
|         ExtUI::onStatusChanged(PSTR("MMU2 Eject Recover")); | ||||
|       #endif | ||||
|       while (wait_for_user) idle(); | ||||
|       BUZZ(200, 404); | ||||
|       BUZZ(200, 404); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user