Do not implicitly concatenate localized strings (#15383)
This commit is contained in:
committed by
Scott Lahteine
parent
62e4e05a19
commit
a18d16fb8b
@@ -2933,11 +2933,14 @@ void Temperature::isr() {
|
||||
#if HOTENDS && HAS_DISPLAY
|
||||
void Temperature::set_heating_message(const uint8_t e) {
|
||||
const bool heating = isHeatingHotend(e);
|
||||
#if HOTENDS > 1
|
||||
ui.status_printf_P(0, heating ? PSTR("E%c " MSG_HEATING) : PSTR("E%c " MSG_COOLING), '1' + e);
|
||||
#else
|
||||
ui.set_status_P(heating ? PSTR("E " MSG_HEATING) : PSTR("E " MSG_COOLING));
|
||||
#endif
|
||||
ui.status_printf_P(0,
|
||||
#if HOTENDS > 1
|
||||
PSTR("E%c " S_FMT), '1' + e
|
||||
#else
|
||||
PSTR("E " S_FMT)
|
||||
#endif
|
||||
, heating ? PSTR(MSG_HEATING) : PSTR(MSG_COOLING)
|
||||
);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user