There are config settings in Marlin for the resolution of the Z offset setting process.