🚸 Show ExtUI message for PID_STARTED

This commit is contained in:
Scott Lahteine 2021-09-06 17:38:47 -05:00
parent 83a1d3a46b
commit 853eebc3f2
4 changed files with 10 additions and 2 deletions

View file

@ -478,7 +478,7 @@
#endif #endif
// Aliases for LCD features // Aliases for LCD features
#if ANY(DGUS_LCD_UI_ORIGIN, DGUS_LCD_UI_FYSETC, DGUS_LCD_UI_HIPRECY,DGUS_LCD_UI_MKS) #if ANY(DGUS_LCD_UI_ORIGIN, DGUS_LCD_UI_FYSETC, DGUS_LCD_UI_HIPRECY, DGUS_LCD_UI_MKS)
#define HAS_DGUS_LCD 1 #define HAS_DGUS_LCD 1
#endif #endif

View file

@ -135,6 +135,9 @@ namespace ExtUI {
void onPidTuning(const result_t rst) { void onPidTuning(const result_t rst) {
// Called for temperature PID tuning result // Called for temperature PID tuning result
switch (rst) { switch (rst) {
case PID_STARTED:
ScreenHandler.setstatusmessagePGM(GET_TEXT(MSG_PID_AUTOTUNE));
break;
case PID_BAD_EXTRUDER_NUM: case PID_BAD_EXTRUDER_NUM:
ScreenHandler.setstatusmessagePGM(GET_TEXT(MSG_PID_BAD_EXTRUDER_NUM)); ScreenHandler.setstatusmessagePGM(GET_TEXT(MSG_PID_BAD_EXTRUDER_NUM));
break; break;
@ -147,7 +150,6 @@ namespace ExtUI {
case PID_DONE: case PID_DONE:
ScreenHandler.setstatusmessagePGM(GET_TEXT(MSG_PID_AUTOTUNE_DONE)); ScreenHandler.setstatusmessagePGM(GET_TEXT(MSG_PID_AUTOTUNE_DONE));
break; break;
case PID_STARTED: break;
} }
ScreenHandler.GotoScreen(DGUSLCD_SCREEN_MAIN); ScreenHandler.GotoScreen(DGUSLCD_SCREEN_MAIN);
} }

View file

@ -133,6 +133,9 @@ namespace ExtUI {
// Called for temperature PID tuning result // Called for temperature PID tuning result
//SERIAL_ECHOLNPAIR("OnPidTuning:", rst); //SERIAL_ECHOLNPAIR("OnPidTuning:", rst);
switch (rst) { switch (rst) {
case PID_STARTED:
StatusScreen::setStatusMessage(GET_TEXT_F(MSG_PID_AUTOTUNE));
break;
case PID_BAD_EXTRUDER_NUM: case PID_BAD_EXTRUDER_NUM:
StatusScreen::setStatusMessage(GET_TEXT_F(MSG_PID_BAD_EXTRUDER_NUM)); StatusScreen::setStatusMessage(GET_TEXT_F(MSG_PID_BAD_EXTRUDER_NUM));
break; break;

View file

@ -108,6 +108,9 @@ namespace ExtUI {
// Called for temperature PID tuning result // Called for temperature PID tuning result
//SERIAL_ECHOLNPAIR("OnPidTuning:", rst); //SERIAL_ECHOLNPAIR("OnPidTuning:", rst);
switch (rst) { switch (rst) {
case PID_STARTED:
set_lcd_error_P(GET_TEXT(MSG_PID_AUTOTUNE));
break;
case PID_BAD_EXTRUDER_NUM: case PID_BAD_EXTRUDER_NUM:
set_lcd_error_P(GET_TEXT(MSG_PID_BAD_EXTRUDER_NUM)); set_lcd_error_P(GET_TEXT(MSG_PID_BAD_EXTRUDER_NUM));
break; break;