In marlin this can be controlled from the menu if you've got a display. That way you can adjust it without having to upload the firmware for every change. From memory, go to control, motion, z offset.
--
Kind regards
Imqqmi
NFAN CoreXY printer:
[
reprap.org]