Default argument to defer_status_screen
This commit is contained in:
parent
9562a02c5a
commit
d8329d858d
|
@ -357,7 +357,7 @@ void MarlinUI::completion_feedback(const bool good/*=true*/) {
|
|||
|
||||
void lcd_babystep_zoffset() {
|
||||
if (ui.use_click()) return ui.goto_previous_screen_no_defer();
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
#if ENABLED(BABYSTEP_HOTEND_Z_OFFSET)
|
||||
const bool do_probe = (active_extruder == 0);
|
||||
#else
|
||||
|
|
|
@ -101,7 +101,7 @@ void _lcd_level_bed_corners_homing() {
|
|||
}
|
||||
|
||||
void _lcd_level_bed_corners() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
if (!all_axes_known()) {
|
||||
set_all_unhomed();
|
||||
enqueue_and_echo_commands_P(PSTR("G28"));
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
// Step 2: Continue Bed Leveling...
|
||||
//
|
||||
void _lcd_level_bed_continue() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
set_all_unhomed();
|
||||
ui.goto_screen(_lcd_level_bed_homing);
|
||||
enqueue_and_echo_commands_P(PSTR("G28"));
|
||||
|
|
|
@ -50,7 +50,7 @@ void _man_probe_pt(const float &rx, const float &ry) {
|
|||
float lcd_probe_pt(const float &rx, const float &ry) {
|
||||
_man_probe_pt(rx, ry);
|
||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
wait_for_user = true;
|
||||
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Delta Calibration in progress"), PSTR("Continue"));
|
||||
|
|
|
@ -528,7 +528,7 @@ void lcd_pause_show_message(
|
|||
hotend_status_extruder = extruder;
|
||||
const screenFunc_t next_screen = ap_message_screen(message);
|
||||
if (next_screen) {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
ui.goto_screen(next_screen);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -45,7 +45,7 @@ static void lcd_power_loss_recovery_cancel() {
|
|||
}
|
||||
|
||||
void menu_job_recovery() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
START_MENU();
|
||||
STATIC_ITEM(MSG_OUTAGE_RECOVERY);
|
||||
MENU_ITEM(function, MSG_RESUME_PRINT, lcd_power_loss_recovery_resume);
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#if ENABLED(GRADIENT_MIX)
|
||||
|
||||
void lcd_mixer_gradient_z_start_edit() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
ui.encoder_direction_normal();
|
||||
ENCODER_RATE_MULTIPLY(true);
|
||||
if (ui.encoderPosition != 0) {
|
||||
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
|
||||
void lcd_mixer_gradient_z_end_edit() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
ui.encoder_direction_normal();
|
||||
ENCODER_RATE_MULTIPLY(true);
|
||||
if (ui.encoderPosition != 0) {
|
||||
|
|
|
@ -197,14 +197,14 @@ void menu_mmu2_pause() {
|
|||
}
|
||||
|
||||
void mmu2_M600() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
ui.goto_screen(menu_mmu2_pause);
|
||||
mmuMenuWait = true;
|
||||
while (mmuMenuWait) idle();
|
||||
}
|
||||
|
||||
uint8_t mmu2_chooseFilament() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
ui.goto_screen(menu_mmu2_chooseFilament);
|
||||
mmuMenuWait = true;
|
||||
while (mmuMenuWait) idle();
|
||||
|
|
|
@ -235,7 +235,7 @@ inline void lcd_move_e() { _lcd_move_e(); }
|
|||
screenFunc_t _manual_move_func_ptr;
|
||||
|
||||
void _goto_manual_move(const float scale) {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
move_menu_scale = scale;
|
||||
ui.goto_screen(_manual_move_func_ptr);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ void lcd_sd_updir() {
|
|||
goto_screen(menu_sdcard, last_sdfile_encoderPosition);
|
||||
last_sdfile_encoderPosition = 0xFFFF;
|
||||
|
||||
defer_status_screen(true);
|
||||
defer_status_screen();
|
||||
|
||||
//#if HAS_GRAPHICAL_LCD
|
||||
// update();
|
||||
|
|
|
@ -84,13 +84,13 @@
|
|||
#if ENABLED(BABYSTEP_XY)
|
||||
void _lcd_babystep_x() { _lcd_babystep(X_AXIS, PSTR(MSG_BABYSTEP_X)); }
|
||||
void _lcd_babystep_y() { _lcd_babystep(Y_AXIS, PSTR(MSG_BABYSTEP_Y)); }
|
||||
void lcd_babystep_x() { ui.goto_screen(_lcd_babystep_x); babysteps_done = 0; ui.defer_status_screen(true); }
|
||||
void lcd_babystep_y() { ui.goto_screen(_lcd_babystep_y); babysteps_done = 0; ui.defer_status_screen(true); }
|
||||
void lcd_babystep_x() { ui.goto_screen(_lcd_babystep_x); babysteps_done = 0; ui.defer_status_screen(); }
|
||||
void lcd_babystep_y() { ui.goto_screen(_lcd_babystep_y); babysteps_done = 0; ui.defer_status_screen(); }
|
||||
#endif
|
||||
|
||||
#if DISABLED(BABYSTEP_ZPROBE_OFFSET)
|
||||
void _lcd_babystep_z() { _lcd_babystep(Z_AXIS, PSTR(MSG_BABYSTEP_Z)); }
|
||||
void lcd_babystep_z() { ui.goto_screen(_lcd_babystep_z); babysteps_done = 0; ui.defer_status_screen(true); }
|
||||
void lcd_babystep_z() { ui.goto_screen(_lcd_babystep_z); babysteps_done = 0; ui.defer_status_screen(); }
|
||||
#endif
|
||||
|
||||
#endif // BABYSTEPPING
|
||||
|
|
|
@ -51,7 +51,7 @@ float mesh_edit_value, mesh_edit_accumulator; // We round mesh_edit_value to 2.5
|
|||
static int16_t ubl_encoderPosition = 0;
|
||||
|
||||
static void _lcd_mesh_fine_tune(PGM_P msg) {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
if (ubl.encoder_diff) {
|
||||
ubl_encoderPosition = (ubl.encoder_diff > 0) ? 1 : -1;
|
||||
ubl.encoder_diff = 0;
|
||||
|
@ -74,7 +74,7 @@ static void _lcd_mesh_fine_tune(PGM_P msg) {
|
|||
}
|
||||
|
||||
void _lcd_mesh_edit_NOP() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
}
|
||||
|
||||
float lcd_mesh_edit() {
|
||||
|
@ -408,7 +408,7 @@ void _lcd_ubl_storage_mesh() {
|
|||
void _lcd_ubl_output_map_lcd();
|
||||
|
||||
void _lcd_ubl_map_homing() {
|
||||
ui.defer_status_screen(true);
|
||||
ui.defer_status_screen();
|
||||
_lcd_draw_homing();
|
||||
if (all_axes_homed()) {
|
||||
ubl.lcd_map_control = true; // Return to the map screen
|
||||
|
|
|
@ -430,7 +430,7 @@ public:
|
|||
static void lcd_in_status(const bool inStatus);
|
||||
#endif
|
||||
|
||||
static inline void defer_status_screen(const bool defer) {
|
||||
static inline void defer_status_screen(const bool defer=true) {
|
||||
#if LCD_TIMEOUT_TO_STATUS
|
||||
defer_return_to_status = defer;
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue