Browse Source

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.
Roxy-3D 5 years ago
parent
commit
3642a12fc1
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/core/utility.h

+ 3
- 3
Marlin/src/core/utility.h View File

47
     void unmark(const uint8_t x, const uint8_t y) { CBI(bits[y], x); }
47
     void unmark(const uint8_t x, const uint8_t y) { CBI(bits[y], x); }
48
     void mark(const uint8_t x, const uint8_t y)   { SBI(bits[y], x); }
48
     void mark(const uint8_t x, const uint8_t y)   { SBI(bits[y], x); }
49
     bool marked(const uint8_t x, const uint8_t y) { return TEST(bits[y], x); }
49
     bool marked(const uint8_t x, const uint8_t y) { return TEST(bits[y], x); }
50
-    inline void unmark(const xy_int8_t &xy)       { unmark(xy.y, xy.x); }
51
-    inline void mark(const xy_int8_t &xy)         { mark(xy.y, xy.x); }
52
-    inline bool marked(const xy_int8_t &xy)       { return marked(xy.y, xy.x); }
50
+    inline void unmark(const xy_int8_t &xy)       { unmark(xy.x, xy.y); }
51
+    inline void mark(const xy_int8_t &xy)         { mark(xy.x, xy.y); }
52
+    inline bool marked(const xy_int8_t &xy)       { return marked(xy.x, xy.y); }
53
   };
53
   };
54
 
54
 
55
   typedef FlagBits<GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y> MeshFlags;
55
   typedef FlagBits<GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y> MeshFlags;

Loading…
Cancel
Save