Ender 3 V2 Status Line (#21369)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d172c71376
commit
930752d46e
@ -360,7 +360,7 @@ void Endstops::event_handler() {
|
||||
if (hit_state == prev_hit_state) return;
|
||||
prev_hit_state = hit_state;
|
||||
if (hit_state) {
|
||||
#if HAS_WIRED_LCD
|
||||
#if HAS_STATUS_MESSAGE
|
||||
char chrX = ' ', chrY = ' ', chrZ = ' ', chrP = ' ';
|
||||
#define _SET_STOP_CHAR(A,C) (chr## A = C)
|
||||
#else
|
||||
@ -391,7 +391,7 @@ void Endstops::event_handler() {
|
||||
#endif
|
||||
SERIAL_EOL();
|
||||
|
||||
TERN_(HAS_WIRED_LCD, ui.status_printf_P(0, PSTR(S_FMT " %c %c %c %c"), GET_TEXT(MSG_LCD_ENDSTOPS), chrX, chrY, chrZ, chrP));
|
||||
TERN_(HAS_STATUS_MESSAGE, ui.status_printf_P(0, PSTR(S_FMT " %c %c %c %c"), GET_TEXT(MSG_LCD_ENDSTOPS), chrX, chrY, chrZ, chrP));
|
||||
|
||||
#if BOTH(SD_ABORT_ON_ENDSTOP_HIT, SDSUPPORT)
|
||||
if (planner.abort_on_endstop_hit) {
|
||||
|
@ -51,7 +51,7 @@
|
||||
#include "../feature/bltouch.h"
|
||||
#endif
|
||||
|
||||
#if HAS_DISPLAY
|
||||
#if HAS_STATUS_MESSAGE
|
||||
#include "../lcd/marlinui.h"
|
||||
#endif
|
||||
|
||||
@ -1144,7 +1144,7 @@ void prepare_line_to_destination() {
|
||||
);
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOLN(msg);
|
||||
TERN_(HAS_DISPLAY, ui.set_status(msg));
|
||||
TERN_(HAS_STATUS_MESSAGE, ui.set_status(msg));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -2495,7 +2495,7 @@ void Temperature::disable_all_heaters() {
|
||||
if (singlenozzle_temp[new_tool] && singlenozzle_temp[new_tool] != singlenozzle_temp[old_tool]) {
|
||||
setTargetHotend(singlenozzle_temp[new_tool], 0);
|
||||
TERN_(AUTOTEMP, planner.autotemp_update());
|
||||
TERN_(HAS_DISPLAY, set_heating_message(0));
|
||||
TERN_(HAS_STATUS_MESSAGE, set_heating_message(0));
|
||||
(void)wait_for_hotend(0, false); // Wait for heating or cooling
|
||||
}
|
||||
}
|
||||
@ -3492,7 +3492,7 @@ void Temperature::tick() {
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAS_HOTEND && HAS_DISPLAY
|
||||
#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,
|
||||
|
@ -877,7 +877,7 @@ class Temperature {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(HAS_DISPLAY)
|
||||
#if HAS_STATUS_MESSAGE
|
||||
static void set_heating_message(const uint8_t e);
|
||||
#endif
|
||||
|
||||
|
@ -1262,7 +1262,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
|
||||
#if HAS_MULTI_HOTEND
|
||||
thermalManager.setTargetHotend(thermalManager.temp_hotend[active_extruder].target, migration_extruder);
|
||||
TERN_(AUTOTEMP, planner.autotemp_update());
|
||||
TERN_(HAS_DISPLAY, thermalManager.set_heating_message(0));
|
||||
TERN_(HAS_STATUS_MESSAGE, thermalManager.set_heating_message(0));
|
||||
thermalManager.wait_for_hotend(active_extruder);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user