Update Marlin_main.cpp

This commit is contained in:
MRprusa3d 2019-09-09 02:16:06 +02:00 committed by GitHub
parent 28c1486df2
commit 978ace7fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2876,7 +2876,7 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level)
#endif //TMC2130
enable_endstops(endstops_enabled);
if ((st_get_position_mm(Z_AXIS) <= (MESH_HOME_Z_SEARCH + HOME_Z_SEARCH_THRESHOLD)) ||
if ((st_get_position_mm(Z_AXIS) <= (MESH_HOME_Z_SEARCH + HOME_Z_SEARCH_THRESHOLD)) &&
(st_get_position_mm(Z_AXIS) >= (MESH_HOME_Z_SEARCH - HOME_Z_SEARCH_THRESHOLD)))
{
if (onlyZ)