Z offset not saving

I have solved my problem with autoleveling!

I used 1.1.0.38. Yesterday I have updated to 1.1.0.56. Bed leveling was good, but model fan doesn’t works. Then I have reseted to factory defaults. Fan started works but leveling not correct again.

I compared configs. Problem with leveling was in gcode_macro.cfg in “[gcode_macro G29]“

Old (which works):

  SET_ADJUSTMENTS_FLAG VALUE=1

  G28 Z
  BED_MESH_CLEAR
  Z_TILT_ADJUST
  SET_PIN PIN=fan0 VALUE=127
  M109 S45
  SET_PIN PIN=fan0 VALUE=0
  ZDOWN_SWITCH ENABLE=0
  G28 Z

  SET_ADJUSTMENTS_FLAG VALUE=0

New (with bad offset):

  SET_ADJUSTMENTS_FLAG VALUE=1

  G28 Z
  BED_MESH_CLEAR
  Z_TILT_ADJUST

  SET_ADJUSTMENTS_FLAG VALUE=0

It seems to me, that problem was because of absent: ZDOWN_SWITCH ENABLE=0