saving settings and then displaying the Z offset is saved

This commit is contained in:
Brian Kahl 2021-09-20 16:38:40 -05:00
parent ef77725a06
commit 8138753749
2 changed files with 5 additions and 2 deletions

View File

@ -301,7 +301,10 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
#include "../../feature/babystep.h" #include "../../feature/babystep.h"
void lcd_babystep_zoffset() { void lcd_babystep_zoffset() {
if (ui.use_click()) return ui.goto_previous_screen_no_defer(); if (ui.use_click()){
queue.inject_P(PSTR("M500\nM117 Z Offset Saved"));
return ui.goto_previous_screen_no_defer();
}
ui.defer_status_screen(); ui.defer_status_screen();
const bool do_probe = DISABLED(BABYSTEP_HOTEND_Z_OFFSET) || active_extruder == 0; const bool do_probe = DISABLED(BABYSTEP_HOTEND_Z_OFFSET) || active_extruder == 0;
if (ui.encoderPosition) { if (ui.encoderPosition) {

View File

@ -505,7 +505,7 @@ void menu_backlash();
#if ENABLED(PROBE_OFFSET_WIZARD) #if ENABLED(PROBE_OFFSET_WIZARD)
SUBMENU(MSG_PROBE_WIZARD, goto_probe_offset_wizard); SUBMENU(MSG_PROBE_WIZARD, goto_probe_offset_wizard);
#endif #endif
queue.inject_P(PSTR("M500\nM117 Z Offset Saved"));
END_MENU(); END_MENU();
} }
#endif #endif