Merge pull request #5892 from thinkyhead/rc_msg_heating_pstr

Use PSTR for MSG_HEATING
This commit is contained in:
Scott Lahteine 2017-02-22 12:26:08 -06:00 committed by GitHub
commit f9e4717f5b
2 changed files with 3 additions and 3 deletions

View file

@ -5308,7 +5308,7 @@ inline void gcode_M104() {
}
#endif
if (code_value_temp_abs() > thermalManager.degHotend(target_extruder)) status_printf(0, "E%i %s", target_extruder + 1, MSG_HEATING);
if (code_value_temp_abs() > thermalManager.degHotend(target_extruder)) status_printf(0, "E%i %s", target_extruder + 1, PSTR(MSG_HEATING));
}
#if ENABLED(AUTOTEMP)
@ -5506,7 +5506,7 @@ inline void gcode_M109() {
else print_job_timer.start();
#endif
if (thermalManager.isHeatingHotend(target_extruder)) status_printf(0, "E%i %s", target_extruder + 1, MSG_HEATING);
if (thermalManager.isHeatingHotend(target_extruder)) status_printf(0, "E%i %s", target_extruder + 1, PSTR(MSG_HEATING));
}
#if ENABLED(AUTOTEMP)

View file

@ -3277,7 +3277,7 @@ void status_printf(uint8_t level, const char *status, ...) {
lcd_status_message_level = level;
va_list args;
va_start(args, status);
vsnprintf(lcd_status_message, 3 * (LCD_WIDTH), status, args);
vsnprintf_P(lcd_status_message, 3 * (LCD_WIDTH), status, args);
va_end(args);
lcd_finishstatus(level > 0);
}