Skip to content
Snippets Groups Projects
Commit 081ef46e authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Fix Arduino IDE compile for DUE

Fixes #16767
parent 15b6ad41
Branches
Tags
No related merge requests found
......@@ -43,14 +43,6 @@ public:
static xyz_pos_t offset;
// Use offset_xy for read only access
// More optimal the XY offset is known to always be zero.
#if HAS_PROBE_XY_OFFSET
static const xyz_pos_t &offset_xy;
#else
static constexpr xy_pos_t offset_xy{0};
#endif
static bool set_deployed(const bool deploy);
#ifdef Z_AFTER_PROBING
......@@ -66,13 +58,20 @@ public:
#else
static constexpr xyz_pos_t offset{0};
static constexpr xy_pos_t offset_xy{0};
static constexpr xyz_pos_t offset = xyz_pos_t({ 0, 0, 0 }); // See #16767
static bool set_deployed(const bool) { return false; }
#endif
// Use offset_xy for read only access
// More optimal the XY offset is known to always be zero.
#if HAS_PROBE_XY_OFFSET
static const xyz_pos_t &offset_xy;
#else
static constexpr xy_pos_t offset_xy = xy_pos_t({ 0, 0 }); // See #16767
#endif
static inline bool deploy() { return set_deployed(true); }
static inline bool stow() { return set_deployed(false); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment