I have some issues with Z-homing.
I have the dual endstop FW and XY homing is working fine.
My Z switch is also working fine hardware-wise, I can verify with M119 that z_min is either “open” or “TRIGGERED” depending on whether I short it or not. But when I execute G28 Z, the Z coordinate is immediately set to 0 and the axis moves up a little, regardless of whether the tool made contact or not. At first I thought it had something to do with Marlin not wanting to move in negative coordinates (if the Z was already at 0), but If I execute G28 XY, both axis move until the endstops are triggered regardless of if they are at 0,0 already or not.
Should I change something in the FW to get it working, or does it work out of the box for everyone else? Can it have something to do with the pullup/pulldown or endstop inverting settings in Marlin (since the Z switch is NO, while XY end stops are NC)?