From 3642a12fc170ffdee8e5db5d78684f82914edc41 Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Wed, 23 Oct 2019 11:34:24 -0500 Subject: [PATCH] fix parameter order of mark, marked and unmark The parameter order was wrong on mark(), marked() and unmark(). This was breaking the G26 Mesh Validation algorithm. --- Marlin/src/core/utility.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/core/utility.h b/Marlin/src/core/utility.h index 2956f92892..f430da50d6 100644 --- a/Marlin/src/core/utility.h +++ b/Marlin/src/core/utility.h @@ -47,9 +47,9 @@ inline void serial_delay(const millis_t ms) { void unmark(const uint8_t x, const uint8_t y) { CBI(bits[y], x); } void mark(const uint8_t x, const uint8_t y) { SBI(bits[y], x); } bool marked(const uint8_t x, const uint8_t y) { return TEST(bits[y], x); } - inline void unmark(const xy_int8_t &xy) { unmark(xy.y, xy.x); } - inline void mark(const xy_int8_t &xy) { mark(xy.y, xy.x); } - inline bool marked(const xy_int8_t &xy) { return marked(xy.y, xy.x); } + inline void unmark(const xy_int8_t &xy) { unmark(xy.x, xy.y); } + inline void mark(const xy_int8_t &xy) { mark(xy.x, xy.y); } + inline bool marked(const xy_int8_t &xy) { return marked(xy.x, xy.y); } }; typedef FlagBits MeshFlags;