🎨 Apply F() to status message
This commit is contained in:
committed by
Scott Lahteine
parent
433eedd50f
commit
360311f232
@ -460,8 +460,8 @@ void Endstops::event_handler() {
|
||||
SERIAL_EOL();
|
||||
|
||||
TERN_(HAS_STATUS_MESSAGE,
|
||||
ui.status_printf_P(0,
|
||||
PSTR(S_FMT GANG_N_1(LINEAR_AXES, " %c") " %c"),
|
||||
ui.status_printf(0,
|
||||
F(S_FMT GANG_N_1(LINEAR_AXES, " %c") " %c"),
|
||||
GET_TEXT(MSG_LCD_ENDSTOPS),
|
||||
LINEAR_AXIS_LIST(chrX, chrY, chrZ, chrI, chrJ, chrK), chrP
|
||||
)
|
||||
|
@ -137,7 +137,7 @@ xyz_pos_t Probe::offset; // Initialized by settings.load()
|
||||
#if ENABLED(TOUCH_MI_MANUAL_DEPLOY)
|
||||
|
||||
const screenFunc_t prev_screen = ui.currentScreen;
|
||||
LCD_MESSAGEPGM(MSG_MANUAL_DEPLOY_TOUCHMI);
|
||||
LCD_MESSAGE(MSG_MANUAL_DEPLOY_TOUCHMI);
|
||||
ui.return_to_status();
|
||||
|
||||
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Deploy TouchMI"), CONTINUE_STR));
|
||||
@ -290,10 +290,10 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
|
||||
BUZZ(100, 659);
|
||||
BUZZ(100, 698);
|
||||
|
||||
PGM_P const ds_str = deploy ? GET_TEXT(MSG_MANUAL_DEPLOY) : GET_TEXT(MSG_MANUAL_STOW);
|
||||
FSTR_P const ds_str = deploy ? GET_TEXT_F(MSG_MANUAL_DEPLOY) : GET_TEXT_F(MSG_MANUAL_STOW);
|
||||
ui.return_to_status(); // To display the new status message
|
||||
ui.set_status_P(ds_str, 99);
|
||||
SERIAL_ECHOLNPGM_P(ds_str);
|
||||
ui.set_status(ds_str, 99);
|
||||
SERIAL_ECHOLNF(ds_str);
|
||||
|
||||
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Stow Probe"), CONTINUE_STR));
|
||||
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(PSTR("Stow Probe")));
|
||||
@ -439,7 +439,7 @@ bool Probe::set_deployed(const bool deploy) {
|
||||
if (PROBE_TRIGGERED() == deploy) { // Unchanged after deploy/stow action?
|
||||
if (IsRunning()) {
|
||||
SERIAL_ERROR_MSG("Z-Probe failed");
|
||||
LCD_ALERTMESSAGEPGM_P(PSTR("Err: ZPROBE"));
|
||||
LCD_ALERTMESSAGE_F("Err: ZPROBE");
|
||||
}
|
||||
stop();
|
||||
return true;
|
||||
@ -793,7 +793,7 @@ float Probe::probe_at_point(const_float_t rx, const_float_t ry, const ProbePtRai
|
||||
|
||||
if (isnan(measured_z)) {
|
||||
stow();
|
||||
LCD_MESSAGEPGM(MSG_LCD_PROBING_FAILED);
|
||||
LCD_MESSAGE(MSG_LCD_PROBING_FAILED);
|
||||
#if DISABLED(G29_RETRY_AND_RECOVER)
|
||||
SERIAL_ERROR_MSG(STR_ERR_PROBING_FAILED);
|
||||
#endif
|
||||
|
@ -1471,7 +1471,7 @@ void MarlinSettings::postprocess() {
|
||||
store_mesh(ubl.storage_slot);
|
||||
#endif
|
||||
|
||||
if (!eeprom_error) LCD_MESSAGEPGM(MSG_SETTINGS_STORED);
|
||||
if (!eeprom_error) LCD_MESSAGE(MSG_SETTINGS_STORED);
|
||||
|
||||
TERN_(EXTENSIBLE_UI, ExtUI::onConfigurationStoreWritten(!eeprom_error));
|
||||
|
||||
@ -1497,7 +1497,7 @@ void MarlinSettings::postprocess() {
|
||||
stored_ver[1] = '\0';
|
||||
}
|
||||
DEBUG_ECHO_MSG("EEPROM version mismatch (EEPROM=", stored_ver, " Marlin=" EEPROM_VERSION ")");
|
||||
TERN_(DWIN_CREALITY_LCD_ENHANCED, ui.set_status(GET_TEXT(MSG_ERR_EEPROM_VERSION)));
|
||||
TERN_(DWIN_CREALITY_LCD_ENHANCED, LCD_MESSAGE(MSG_ERR_EEPROM_VERSION));
|
||||
|
||||
IF_DISABLED(EEPROM_AUTO_INIT, ui.eeprom_alert_version());
|
||||
eeprom_error = true;
|
||||
@ -2362,7 +2362,7 @@ void MarlinSettings::postprocess() {
|
||||
else if (working_crc != stored_crc) {
|
||||
eeprom_error = true;
|
||||
DEBUG_ERROR_MSG("EEPROM CRC mismatch - (stored) ", stored_crc, " != ", working_crc, " (calculated)!");
|
||||
TERN_(DWIN_CREALITY_LCD_ENHANCED, ui.set_status(GET_TEXT(MSG_ERR_EEPROM_CRC)));
|
||||
TERN_(DWIN_CREALITY_LCD_ENHANCED, LCD_MESSAGE(MSG_ERR_EEPROM_CRC));
|
||||
IF_DISABLED(EEPROM_AUTO_INIT, ui.eeprom_alert_crc());
|
||||
}
|
||||
else if (!validating) {
|
||||
|
@ -635,7 +635,7 @@ volatile bool Temperature::raw_temps_ready = false;
|
||||
|
||||
// PID Tuning loop
|
||||
wait_for_heatup = true; // Can be interrupted with M108
|
||||
TERN_(HAS_STATUS_MESSAGE, ui.status_printf_P(0, PSTR(S_FMT), "Wait for heat up..."));
|
||||
TERN_(HAS_STATUS_MESSAGE, ui.set_status(F("Wait for heat up...")));
|
||||
while (wait_for_heatup) {
|
||||
|
||||
const millis_t ms = millis();
|
||||
@ -696,7 +696,7 @@ volatile bool Temperature::raw_temps_ready = false;
|
||||
}
|
||||
}
|
||||
SHV((bias + d) >> 1);
|
||||
TERN_(HAS_STATUS_MESSAGE, ui.status_printf_P(0, PSTR(S_FMT " %i/%i"), GET_TEXT(MSG_PID_CYCLE), cycles, ncycles));
|
||||
TERN_(HAS_STATUS_MESSAGE, ui.status_printf(0, F(S_FMT " %i/%i"), GET_TEXT(MSG_PID_CYCLE), cycles, ncycles));
|
||||
cycles++;
|
||||
minT = target;
|
||||
}
|
||||
@ -3603,11 +3603,11 @@ void Temperature::isr() {
|
||||
#if HAS_HOTEND && HAS_STATUS_MESSAGE
|
||||
void Temperature::set_heating_message(const uint8_t e) {
|
||||
const bool heating = isHeatingHotend(e);
|
||||
ui.status_printf_P(0,
|
||||
ui.status_printf(0,
|
||||
#if HAS_MULTI_HOTEND
|
||||
PSTR("E%c " S_FMT), '1' + e
|
||||
F("E%c " S_FMT), '1' + e
|
||||
#else
|
||||
PSTR("E1 " S_FMT)
|
||||
F("E1 " S_FMT)
|
||||
#endif
|
||||
, heating ? GET_TEXT(MSG_HEATING) : GET_TEXT(MSG_COOLING)
|
||||
);
|
||||
@ -3744,7 +3744,7 @@ void Temperature::isr() {
|
||||
void Temperature::wait_for_hotend_heating(const uint8_t target_extruder) {
|
||||
if (isHeatingHotend(target_extruder)) {
|
||||
SERIAL_ECHOLNPGM("Wait for hotend heating...");
|
||||
LCD_MESSAGEPGM(MSG_HEATING);
|
||||
LCD_MESSAGE(MSG_HEATING);
|
||||
wait_for_hotend(target_extruder);
|
||||
ui.reset_status();
|
||||
}
|
||||
@ -3874,7 +3874,7 @@ void Temperature::isr() {
|
||||
void Temperature::wait_for_bed_heating() {
|
||||
if (isHeatingBed()) {
|
||||
SERIAL_ECHOLNPGM("Wait for bed heating...");
|
||||
LCD_MESSAGEPGM(MSG_BED_HEATING);
|
||||
LCD_MESSAGE(MSG_BED_HEATING);
|
||||
wait_for_bed();
|
||||
ui.reset_status();
|
||||
}
|
||||
|
@ -490,12 +490,12 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
|
||||
#endif
|
||||
|
||||
if (check_tool_sensor_stats(0)) {
|
||||
ui.set_status_P("TC error");
|
||||
LCD_MESSAGE_F("TC error");
|
||||
switching_toolhead_lock(false);
|
||||
while (check_tool_sensor_stats(0)) { /* nada */ }
|
||||
switching_toolhead_lock(true);
|
||||
}
|
||||
ui.set_status_P("TC Success");
|
||||
LCD_MESSAGE_F("TC Success");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user