Skip to content

Commit

Permalink
Save to EEPROM after Z-offset change MarlinFirmware#48
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebazzz committed Nov 17, 2020
1 parent 5347e94 commit d6b9851
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ void LevelingModeHandler(DGUS_VP_Variable &var, unsigned short buttonValue) {
// Increase Z-offset
ExtUI::smartAdjustAxis_steps(ExtUI::mmToWholeSteps(0.01, ExtUI::axis_t::Z), ExtUI::axis_t::Z, true);;
ScreenHandler.ForceCompleteUpdate();
settings.save();
break;

case 3:
// Decrease Z-offset
ExtUI::smartAdjustAxis_steps(ExtUI::mmToWholeSteps(-0.01, ExtUI::axis_t::Z), ExtUI::axis_t::Z, true);;
ScreenHandler.ForceCompleteUpdate();
settings.save();
break;
}

Expand Down

0 comments on commit d6b9851

Please sign in to comment.