Ender z stop accuracy

Hey just wondering if their is a g-code or an altered firmware out there that has the stop resetting itself twice, one initial reset and then a second more accurate reset at half the feed? Kind of how the CR & BL touch work.

I only ask as my ender can sometimes be exactly the correct height and sometimes it can be up or down +/- by between 0-0.2mm which can be a headache on the first layer… Want to find a way to give it a better chance of staying within a smaller tolerance.

This is a firmware setting. Do you run the stock firmware?

Yes i run the stock firmware. I have ran th3d firmware before so understand how to compile etc. Just not sure where to alter thelis setting?