Fix home_all_axis to make QUICK_HOME work with Repetier-Host which sends G28 X0 Y0 Z0 instead of G28. Thanks to Matt Schoenholz for reporting this issue.

This commit is contained in:
Johann Rocholl 2012-12-16 12:30:33 -08:00
parent 3b2e5027e5
commit 6dfb8a2187

View file

@ -729,7 +729,8 @@ void process_commands()
destination[i] = current_position[i];
}
feedrate = 0.0;
home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])))
|| ((code_seen(axis_codes[0])) && (code_seen(axis_codes[1])) && (code_seen(axis_codes[2])));
#ifdef QUICK_HOME
if (home_all_axis) // Move all carriages up together until the first endstop is hit.