Fix MIN/MAX function collision with macros
This commit is contained in:
@@ -394,10 +394,10 @@ G29_TYPE GcodeSuite::G29() {
|
||||
|
||||
if (parser.seen('H')) {
|
||||
const int16_t size = (int16_t)parser.value_linear_units();
|
||||
left_probe_bed_position = MAX(X_CENTER - size / 2, MIN_PROBE_X);
|
||||
right_probe_bed_position = MIN(left_probe_bed_position + size, MAX_PROBE_X);
|
||||
front_probe_bed_position = MAX(Y_CENTER - size / 2, MIN_PROBE_Y);
|
||||
back_probe_bed_position = MIN(front_probe_bed_position + size, MAX_PROBE_Y);
|
||||
left_probe_bed_position = _MAX(X_CENTER - size / 2, MIN_PROBE_X);
|
||||
right_probe_bed_position = _MIN(left_probe_bed_position + size, MAX_PROBE_X);
|
||||
front_probe_bed_position = _MAX(Y_CENTER - size / 2, MIN_PROBE_Y);
|
||||
back_probe_bed_position = _MIN(front_probe_bed_position + size, MAX_PROBE_Y);
|
||||
}
|
||||
else {
|
||||
left_probe_bed_position = parser.seenval('L') ? (int)RAW_X_POSITION(parser.value_linear_units()) : LEFT_PROBE_BED_POSITION;
|
||||
@@ -511,7 +511,7 @@ G29_TYPE GcodeSuite::G29() {
|
||||
if (verbose_level || seenQ) {
|
||||
SERIAL_ECHOPGM("Manual G29 ");
|
||||
if (g29_in_progress) {
|
||||
SERIAL_ECHOPAIR("point ", MIN(abl_probe_index + 1, abl_points));
|
||||
SERIAL_ECHOPAIR("point ", _MIN(abl_probe_index + 1, abl_points));
|
||||
SERIAL_ECHOLNPAIR(" of ", abl_points);
|
||||
}
|
||||
else
|
||||
|
@@ -197,7 +197,7 @@ void GcodeSuite::G29() {
|
||||
} // switch(state)
|
||||
|
||||
if (state == MeshNext) {
|
||||
SERIAL_ECHOPAIR("MBL G29 point ", MIN(mbl_probe_index, GRID_MAX_POINTS));
|
||||
SERIAL_ECHOPAIR("MBL G29 point ", _MIN(mbl_probe_index, GRID_MAX_POINTS));
|
||||
SERIAL_ECHOLNPAIR(" of ", int(GRID_MAX_POINTS));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user