|
@ -354,189 +354,129 @@ void menu_advanced_pause_option() { |
|
|
END_MENU(); |
|
|
END_MENU(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lcd_advanced_pause_init_message() { |
|
|
//
|
|
|
|
|
|
// ADVANCED_PAUSE_FEATURE message screens
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
void _lcd_advanced_pause_message(PGM_P const msg1, PGM_P const msg2=NULL, PGM_P const msg3=NULL) { |
|
|
START_SCREEN(); |
|
|
START_SCREEN(); |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_INIT_1); |
|
|
STATIC_ITEM_P(msg1); |
|
|
|
|
|
if (msg2) STATIC_ITEM_P(msg2); |
|
|
|
|
|
if (msg3) STATIC_ITEM_P(msg3); |
|
|
|
|
|
if ((!!msg2) + (!!msg3) + 2 < LCD_HEIGHT - 1) STATIC_ITEM(" "); |
|
|
|
|
|
HOTEND_STATUS_ITEM(); |
|
|
|
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void lcd_advanced_pause_init_message() { |
|
|
|
|
|
_lcd_advanced_pause_message(MSG_FILAMENT_CHANGE_INIT_1 |
|
|
#ifdef MSG_FILAMENT_CHANGE_INIT_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_INIT_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_INIT_2); |
|
|
, MSG_FILAMENT_CHANGE_INIT_2 |
|
|
#define __FC_LINES_A 3 |
|
|
|
|
|
#else |
|
|
|
|
|
#define __FC_LINES_A 2 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_INIT_3 |
|
|
#ifdef MSG_FILAMENT_CHANGE_INIT_3 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_INIT_3); |
|
|
, MSG_FILAMENT_CHANGE_INIT_3 |
|
|
#define _FC_LINES_A (__FC_LINES_A + 1) |
|
|
|
|
|
#else |
|
|
|
|
|
#define _FC_LINES_A __FC_LINES_A |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_A + 1 |
|
|
|
|
|
STATIC_ITEM(" "); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
); |
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lcd_advanced_pause_unload_message() { |
|
|
void lcd_advanced_pause_unload_message() { |
|
|
START_SCREEN(); |
|
|
_lcd_advanced_pause_message(MSG_FILAMENT_CHANGE_UNLOAD_1 |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_UNLOAD_1); |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_UNLOAD_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_UNLOAD_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_UNLOAD_2); |
|
|
, MSG_FILAMENT_CHANGE_UNLOAD_2 |
|
|
#define __FC_LINES_B 3 |
|
|
|
|
|
#else |
|
|
|
|
|
#define __FC_LINES_B 2 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_UNLOAD_3 |
|
|
#ifdef MSG_FILAMENT_CHANGE_UNLOAD_3 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_UNLOAD_3); |
|
|
, MSG_FILAMENT_CHANGE_UNLOAD_3 |
|
|
#define _FC_LINES_B (__FC_LINES_B + 1) |
|
|
|
|
|
#else |
|
|
|
|
|
#define _FC_LINES_B __FC_LINES_B |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_B + 1 |
|
|
|
|
|
STATIC_ITEM(" "); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
); |
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lcd_advanced_pause_wait_for_nozzles_to_heat() { |
|
|
void lcd_advanced_pause_heating_message() { |
|
|
START_SCREEN(); |
|
|
_lcd_advanced_pause_message(MSG_FILAMENT_CHANGE_HEATING_1 |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_HEATING_1); |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_HEATING_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_HEATING_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_HEATING_2); |
|
|
, MSG_FILAMENT_CHANGE_HEATING_2 |
|
|
#define _FC_LINES_C 3 |
|
|
#ifdef MSG_FILAMENT_CHANGE_HEATING_3 |
|
|
#else |
|
|
, MSG_FILAMENT_CHANGE_HEATING_3 |
|
|
#define _FC_LINES_C 2 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_C + 1 |
|
|
|
|
|
STATIC_ITEM(" "); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
); |
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lcd_advanced_pause_heat_nozzle() { |
|
|
void lcd_advanced_pause_heat_message() { |
|
|
START_SCREEN(); |
|
|
_lcd_advanced_pause_message(MSG_FILAMENT_CHANGE_HEAT_1 |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
#ifdef MSG_FILAMENT_CHANGE_HEAT_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_HEAT_1); |
|
|
, MSG_FILAMENT_CHANGE_HEAT_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_INSERT_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_HEAT_3 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_HEAT_2); |
|
|
, MSG_FILAMENT_CHANGE_HEAT_3 |
|
|
#define _FC_LINES_D 3 |
|
|
|
|
|
#else |
|
|
|
|
|
#define _FC_LINES_D 2 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_D + 1 |
|
|
|
|
|
STATIC_ITEM(" "); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
); |
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lcd_advanced_pause_insert_message() { |
|
|
void lcd_advanced_pause_insert_message() { |
|
|
START_SCREEN(); |
|
|
_lcd_advanced_pause_message(MSG_FILAMENT_CHANGE_INSERT_1 |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_INSERT_1); |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_INSERT_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_INSERT_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_INSERT_2); |
|
|
, MSG_FILAMENT_CHANGE_INSERT_2 |
|
|
#define __FC_LINES_E 3 |
|
|
|
|
|
#else |
|
|
|
|
|
#define __FC_LINES_E 2 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_INSERT_3 |
|
|
#ifdef MSG_FILAMENT_CHANGE_INSERT_3 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_INSERT_3); |
|
|
, MSG_FILAMENT_CHANGE_INSERT_3 |
|
|
#define _FC_LINES_E (__FC_LINES_E + 1) |
|
|
|
|
|
#else |
|
|
|
|
|
#define _FC_LINES_E __FC_LINES_E |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_E + 1 |
|
|
|
|
|
STATIC_ITEM(" "); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
); |
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lcd_advanced_pause_load_message() { |
|
|
void lcd_advanced_pause_load_message() { |
|
|
START_SCREEN(); |
|
|
_lcd_advanced_pause_message(MSG_FILAMENT_CHANGE_LOAD_1 |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_LOAD_1); |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_LOAD_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_LOAD_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_LOAD_2); |
|
|
, MSG_FILAMENT_CHANGE_LOAD_2 |
|
|
#define __FC_LINES_F 3 |
|
|
|
|
|
#else |
|
|
|
|
|
#define __FC_LINES_F 2 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_LOAD_3 |
|
|
#ifdef MSG_FILAMENT_CHANGE_LOAD_3 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_LOAD_3); |
|
|
, MSG_FILAMENT_CHANGE_LOAD_3 |
|
|
#define _FC_LINES_F (__FC_LINES_F + 1) |
|
|
|
|
|
#else |
|
|
|
|
|
#define _FC_LINES_F __FC_LINES_F |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_F + 1 |
|
|
|
|
|
STATIC_ITEM(" "); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
); |
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lcd_advanced_pause_purge_message() { |
|
|
void lcd_advanced_pause_waiting_message() { |
|
|
START_SCREEN(); |
|
|
_lcd_advanced_pause_message(MSG_ADVANCED_PAUSE_WAITING_1 |
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
#ifdef MSG_ADVANCED_PAUSE_WAITING_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_1); |
|
|
, MSG_ADVANCED_PAUSE_WAITING_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_PURGE_2 |
|
|
#ifdef MSG_ADVANCED_PAUSE_WAITING_3 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_2); |
|
|
, MSG_ADVANCED_PAUSE_WAITING_3 |
|
|
#define __FC_LINES_G 3 |
|
|
|
|
|
#else |
|
|
|
|
|
#define __FC_LINES_G 2 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#ifdef MSG_FILAMENT_CHANGE_PURGE_3 |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_3); |
|
|
|
|
|
#define _FC_LINES_G (__FC_LINES_G + 1) |
|
|
|
|
|
#else |
|
|
|
|
|
#define _FC_LINES_G __FC_LINES_G |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_G + 1 |
|
|
); |
|
|
STATIC_ITEM(" "); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void lcd_advanced_pause_resume_message() { |
|
|
|
|
|
_lcd_advanced_pause_message(MSG_FILAMENT_CHANGE_RESUME_1 |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_RESUME_2 |
|
|
|
|
|
, MSG_FILAMENT_CHANGE_RESUME_2 |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_RESUME_3 |
|
|
|
|
|
, MSG_FILAMENT_CHANGE_RESUME_3 |
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
#endif |
|
|
END_SCREEN(); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE) |
|
|
void lcd_advanced_pause_purge_message() { |
|
|
void menu_advanced_pause_continuous_purge() { |
|
|
|
|
|
START_SCREEN(); |
|
|
START_SCREEN(); |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_1); |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_1); |
|
|
#ifdef MSG_FILAMENT_CHANGE_PURGE_2 |
|
|
#ifdef MSG_FILAMENT_CHANGE_PURGE_2 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_2); |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_2); |
|
|
#define __FC_LINES_G 3 |
|
|
|
|
|
#else |
|
|
|
|
|
#define __FC_LINES_G 2 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_PURGE_3 |
|
|
#ifdef MSG_FILAMENT_CHANGE_PURGE_3 |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_3); |
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_PURGE_3); |
|
|
#define _FC_LINES_G (__FC_LINES_G + 1) |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE) |
|
|
|
|
|
#define _PURGE_BASE 3 |
|
|
#else |
|
|
#else |
|
|
#define _FC_LINES_G __FC_LINES_G |
|
|
#define _PURGE_BASE 2 |
|
|
#endif |
|
|
#endif |
|
|
#if LCD_HEIGHT > _FC_LINES_G + 1 |
|
|
#if (_PURGE_BASE + defined(MSG_FILAMENT_CHANGE_PURGE_2) + defined(MSG_FILAMENT_CHANGE_PURGE_3)) < LCD_HEIGHT - 1 |
|
|
STATIC_ITEM(" "); |
|
|
STATIC_ITEM(" "); |
|
|
#endif |
|
|
#endif |
|
|
HOTEND_STATUS_ITEM(); |
|
|
HOTEND_STATUS_ITEM(); |
|
|
|
|
|
#if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE) |
|
|
STATIC_ITEM(MSG_USERWAIT); |
|
|
STATIC_ITEM(MSG_USERWAIT); |
|
|
END_SCREEN(); |
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
void lcd_advanced_pause_resume_message() { |
|
|
|
|
|
START_SCREEN(); |
|
|
|
|
|
STATIC_ITEM_P(advanced_pause_header(), true, true); |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_RESUME_1); |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_RESUME_2 |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_RESUME_2); |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef MSG_FILAMENT_CHANGE_RESUME_3 |
|
|
|
|
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_RESUME_3); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
END_SCREEN(); |
|
|
END_SCREEN(); |
|
|
} |
|
|
} |
|
@ -545,17 +485,20 @@ FORCE_INLINE screenFunc_t ap_message_screen(const AdvancedPauseMessage message) |
|
|
switch (message) { |
|
|
switch (message) { |
|
|
case ADVANCED_PAUSE_MESSAGE_INIT: return lcd_advanced_pause_init_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_INIT: return lcd_advanced_pause_init_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_UNLOAD: return lcd_advanced_pause_unload_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_UNLOAD: return lcd_advanced_pause_unload_message; |
|
|
|
|
|
case ADVANCED_PAUSE_MESSAGE_WAITING: return lcd_advanced_pause_waiting_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_INSERT: return lcd_advanced_pause_insert_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_INSERT: return lcd_advanced_pause_insert_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_LOAD: return lcd_advanced_pause_load_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_LOAD: return lcd_advanced_pause_load_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_PURGE: return lcd_advanced_pause_purge_message; |
|
|
#if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE) |
|
|
|
|
|
case ADVANCED_PAUSE_MESSAGE_CONTINUOUS_PURGE: |
|
|
|
|
|
#else |
|
|
|
|
|
case ADVANCED_PAUSE_MESSAGE_PURGE: |
|
|
|
|
|
#endif |
|
|
|
|
|
return lcd_advanced_pause_purge_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_RESUME: return lcd_advanced_pause_resume_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_RESUME: return lcd_advanced_pause_resume_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_CLICK_TO_HEAT_NOZZLE: return lcd_advanced_pause_heat_nozzle; |
|
|
case ADVANCED_PAUSE_MESSAGE_HEAT: return lcd_advanced_pause_heat_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_WAIT_FOR_NOZZLES_TO_HEAT: return lcd_advanced_pause_wait_for_nozzles_to_heat; |
|
|
case ADVANCED_PAUSE_MESSAGE_HEATING: return lcd_advanced_pause_heating_message; |
|
|
case ADVANCED_PAUSE_MESSAGE_OPTION: advanced_pause_menu_response = ADVANCED_PAUSE_RESPONSE_WAIT_FOR; |
|
|
case ADVANCED_PAUSE_MESSAGE_OPTION: advanced_pause_menu_response = ADVANCED_PAUSE_RESPONSE_WAIT_FOR; |
|
|
return menu_advanced_pause_option; |
|
|
return menu_advanced_pause_option; |
|
|
#if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE) |
|
|
|
|
|
case ADVANCED_PAUSE_MESSAGE_CONTINUOUS_PURGE: return menu_advanced_pause_continuous_purge; |
|
|
|
|
|
#endif |
|
|
|
|
|
case ADVANCED_PAUSE_MESSAGE_STATUS: |
|
|
case ADVANCED_PAUSE_MESSAGE_STATUS: |
|
|
default: break; |
|
|
default: break; |
|
|
} |
|
|
} |
|
|