Do not implicitly concatenate localized strings (#15383)
This commit is contained in:
committed by
Scott Lahteine
parent
62e4e05a19
commit
a18d16fb8b
@ -373,7 +373,7 @@ void Endstops::event_handler() {
|
||||
SERIAL_EOL();
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
ui.status_printf_P(0, PSTR(MSG_LCD_ENDSTOPS " %c %c %c %c"), chrX, chrY, chrZ, chrP);
|
||||
ui.status_printf_P(0, PSTR(S_FMT " %c %c %c %c"), PSTR(MSG_LCD_ENDSTOPS), chrX, chrY, chrZ, chrP);
|
||||
#endif
|
||||
|
||||
#if BOTH(SD_ABORT_ON_ENDSTOP_HIT, SDSUPPORT)
|
||||
|
@ -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