Fix probe without leveling

This commit is contained in:
Scott Lahteine 2019-09-25 19:57:41 -05:00
parent 8cbb5350ad
commit 39578a5919

View file

@ -50,6 +50,8 @@
extern const char msg_wait_for_bed_heating[25]; extern const char msg_wait_for_bed_heating[25];
#endif #endif
#if HAS_LEVELING
inline float probe_min_x() { inline float probe_min_x() {
return _MAX( return _MAX(
#if ENABLED(DELTA) || IS_SCARA #if ENABLED(DELTA) || IS_SCARA
@ -59,6 +61,7 @@
#endif #endif
); );
} }
inline float probe_max_x() { inline float probe_max_x() {
return _MIN( return _MIN(
#if ENABLED(DELTA) || IS_SCARA #if ENABLED(DELTA) || IS_SCARA
@ -68,6 +71,7 @@
#endif #endif
); );
} }
inline float probe_min_y() { inline float probe_min_y() {
return _MAX( return _MAX(
#if ENABLED(DELTA) || IS_SCARA #if ENABLED(DELTA) || IS_SCARA
@ -77,6 +81,7 @@
#endif #endif
); );
} }
inline float probe_max_y() { inline float probe_max_y() {
return _MIN( return _MIN(
#if ENABLED(DELTA) || IS_SCARA #if ENABLED(DELTA) || IS_SCARA
@ -87,6 +92,8 @@
); );
} }
#endif
#else #else
constexpr float probe_offset[XYZ] = { 0 }; constexpr float probe_offset[XYZ] = { 0 };