|
@@ -88,7 +88,7 @@ void GcodeSuite::G34() {
|
88
|
88
|
}
|
89
|
89
|
|
90
|
90
|
const float z_auto_align_amplification = parser.floatval('A', Z_STEPPER_ALIGN_AMP);
|
91
|
|
- if (!WITHIN(z_auto_align_amplification, 0.5f, 2.0f)) {
|
|
91
|
+ if (!WITHIN(ABS(z_auto_align_amplification), 0.5f, 2.0f)) {
|
92
|
92
|
SERIAL_ECHOLNPGM("?(A)mplification out of bounds (0.5-2.0).");
|
93
|
93
|
break;
|
94
|
94
|
}
|
|
@@ -137,7 +137,7 @@ void GcodeSuite::G34() {
|
137
|
137
|
// For each iteration go through all probe positions (one per Z-Stepper)
|
138
|
138
|
for (uint8_t zstepper = 0; zstepper < Z_STEPPER_COUNT; ++zstepper) {
|
139
|
139
|
// Probe a Z height for each stepper
|
140
|
|
- z_measured[zstepper] = probe_pt(z_auto_align_xpos[zstepper], z_auto_align_ypos[zstepper], PROBE_PT_RAISE, false);
|
|
140
|
+ z_measured[zstepper] = probe_pt(z_auto_align_xpos[zstepper], z_auto_align_ypos[zstepper], PROBE_PT_RAISE, 0, false);
|
141
|
141
|
|
142
|
142
|
// Stop on error
|
143
|
143
|
if (isnan(z_measured[zstepper])) {
|