Quote Originally Posted by Roxy View Post
I don't remember retract_z_probe() ever having any arguments.
That was exactly my point. All of a sudden in the retract_z_probe function an attempt to use variable axis shows up and the compiler errors because it doesn't know what it is. It's evidently not a global, so it should be passed to retract_z_probe as an argument.

The number of ifdefs in the Marlin code is incredible.