if user dont confirm live adjust Z by pressing the knob, save last live adjust value to eeprom
This commit is contained in:
parent
4c7cc5520e
commit
7de187d813
@ -1089,7 +1089,7 @@ void setup()
|
|||||||
|
|
||||||
#ifndef DEBUG_DISABLE_STARTMSGS
|
#ifndef DEBUG_DISABLE_STARTMSGS
|
||||||
if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) == 1) {
|
if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) == 1) {
|
||||||
lcd_wizard(0);
|
lcd_wizard(0);
|
||||||
}
|
}
|
||||||
else if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) == 0) { //dont show calibration status messages if wizard is currently active
|
else if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) == 0) { //dont show calibration status messages if wizard is currently active
|
||||||
if (calibration_status() == CALIBRATION_STATUS_ASSEMBLED ||
|
if (calibration_status() == CALIBRATION_STATUS_ASSEMBLED ||
|
||||||
|
@ -1121,6 +1121,7 @@ void lcd_commands()
|
|||||||
lcd_setstatuspgm(WELCOME_MSG);
|
lcd_setstatuspgm(WELCOME_MSG);
|
||||||
lcd_commands_step = 0;
|
lcd_commands_step = 0;
|
||||||
lcd_commands_type = 0;
|
lcd_commands_type = 0;
|
||||||
|
menuExiting = true; //if user dont confirm live adjust Z value by pressing the knob, we are saving last value by going to status screen
|
||||||
if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) == 1) {
|
if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) == 1) {
|
||||||
lcd_wizard(10);
|
lcd_wizard(10);
|
||||||
}
|
}
|
||||||
@ -3564,7 +3565,9 @@ void lcd_wizard(int state) {
|
|||||||
case 10: //repeat first layer cal.?
|
case 10: //repeat first layer cal.?
|
||||||
wizard_event = lcd_show_multiscreen_message_yes_no_and_wait_P(MSG_WIZARD_REPEAT_V2_CAL, false);
|
wizard_event = lcd_show_multiscreen_message_yes_no_and_wait_P(MSG_WIZARD_REPEAT_V2_CAL, false);
|
||||||
if (wizard_event) {
|
if (wizard_event) {
|
||||||
|
//reset status and live adjust z value in eeprom
|
||||||
calibration_status_store(CALIBRATION_STATUS_LIVE_ADJUST);
|
calibration_status_store(CALIBRATION_STATUS_LIVE_ADJUST);
|
||||||
|
EEPROM_save_B(EEPROM_BABYSTEP_Z, 0);
|
||||||
lcd_show_fullscreen_message_and_wait_P(MSG_WIZARD_CLEAN_HEATBED);
|
lcd_show_fullscreen_message_and_wait_P(MSG_WIZARD_CLEAN_HEATBED);
|
||||||
state = 9;
|
state = 9;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user