diff --git a/configuration/macros/mesh.cfg b/configuration/macros/mesh.cfg index 3f0b2480f..1cd217d58 100644 --- a/configuration/macros/mesh.cfg +++ b/configuration/macros/mesh.cfg @@ -26,8 +26,8 @@ gcode: {% if printer.configfile.settings.beacon is defined and beacon_contact_start_print_true_zero %} {% set zero_ref_pos = printer.configfile.settings.bed_mesh.zero_reference_position %} - {% if zero_ref_pos is not defined or zero_ref_pos[0] != safe_home_x or zero_ref_pos[1] != safe_home_y %} - CONSOLE_ECHO TYPE="error" TITLE="Zero reference position does not match safe home position" MSG="Please update your bed mesh zero reference position in printer.cfg, like so:_N__N_[bed_mesh]_N_zero_reference_position: {safe_home_x},{safe_home_y}_N_" + {% if zero_ref_pos is not defined or zero_ref_pos[0]|float|round != safe_home_x|float|round or zero_ref_pos[1]|float|round != safe_home_y|float|round %} + CONSOLE_ECHO TYPE="error" TITLE="Zero reference position does not match safe home position" MSG="Please update your bed mesh zero reference position in printer.cfg, like so:_N__N_[bed_mesh]_N_zero_reference_position: {safe_home_x|float|round},{safe_home_y|float|round}_N_" _STOP_AND_RAISE_ERROR MSG="Zero reference position does not match safe home position" {% endif %} {% endif %}