Skip to content

Commit 727060d

Browse files
committed
Replace CustomMsg::MsgUpdate with CustomMsg::M117
MsgUpdate was only used with M117, renaming the message type to M117 may be more descriptive for current use case.
1 parent c77b768 commit 727060d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Firmware/ultralcd.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ void lcdui_print_status_line(void)
618618
}
619619
} else { // Otherwise check for other special events
620620
switch (custom_message_type) {
621-
case CustomMsg::MsgUpdate: //Short message even while printing from SD
621+
case CustomMsg::M117: // M117 Set the status line message on the LCD
622622
case CustomMsg::Status: // Nothing special, print status message normally
623623
case CustomMsg::M0Wait: // M0/M1 Wait command working even from SD
624624
lcd_print(lcd_status_message);
@@ -676,9 +676,6 @@ void lcdui_print_status_line(void)
676676
case CustomMsg::Resuming: //Resuming
677677
lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
678678
break;
679-
case CustomMsg::M117:
680-
lcd_print(lcd_status_message);
681-
break;
682679
}
683680
}
684681

Firmware/ultralcd.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ enum class CustomMsg : uint_least8_t
121121
TempCal, //!< PINDA temperature calibration
122122
TempCompPreheat, //!< Temperature compensation preheat
123123
M0Wait, //!< M0/M1 Wait command working even from SD
124-
MsgUpdate, //!< Short message even while printing from SD
124+
M117, //!< M117 Set the status line message on the LCD
125125
Resuming, //!< Resuming message
126-
M117, //!< M117 Custom Message to be displayed
127126
};
128127

129128
extern CustomMsg custom_message_type;

0 commit comments

Comments
 (0)