Quote Originally Posted by printbus View Post
I'll bet the 'void retract_z_probe()' should really be 'void retract_z_probe(int axis)'.
I don't remember retract_z_probe() ever having any arguments. I have a different theory. If you go find the declaration:

void retract_z_probe()

and then search for the first occurrence of

if (axis==Z_AXIS)

because that is what that error message:

Marlin_main.cpp:1100:13: error: ‘axis’ was not declared in this scope
if (axis==Z_AXIS)

is complaining about... You find this stuff just before the if (axis==Z_AXIS)


#ifndef Z_PROBE_SLED
engage_z_probe(); // Engage Z Servo endstop if available
#endif // Z_PROBE_SLED
run_z_probe();
float measured_z = current_position[Z_AXIS];
#ifndef Z_PROBE_SLED
if (retract_probe) {
do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS],current_position[Z_AXIS]+Z_RAISE_BETWEEN_PROBINGS );
retract_z_probe();
}
#endif // Z_PROBE_SLED


I bet those Z_PROBE_SLED #ifdef problems are biting you!