Bläddra i källkod

Match onMeshUpdate() index sign (#15920)

InsanityAutomation 5 år sedan
förälder
incheckning
4d4e692c81

+ 1
- 1
Marlin/src/gcode/bedlevel/abl/G29.cpp Visa fil

@@ -678,7 +678,7 @@ G29_TYPE GcodeSuite::G29() {
678 678
 
679 679
       measured_z = 0;
680 680
 
681
-      xy_uint8_t meshCount;
681
+      xy_int8_t meshCount;
682 682
 
683 683
       // Outer loop is X with PROBE_Y_FIRST enabled
684 684
       // Outer loop is Y with PROBE_Y_FIRST disabled

+ 1
- 1
Marlin/src/lcd/extensible_ui/lib/lulzbot/marlin_events.cpp Visa fil

@@ -127,7 +127,7 @@ namespace ExtUI {
127 127
   }
128 128
 
129 129
   #if HAS_LEVELING && HAS_MESH
130
-    void onMeshUpdate(const uint8_t, const uint8_t, const float) {
130
+    void onMeshUpdate(const int8_t, const int8_t, const float) {
131 131
     }
132 132
   #endif
133 133
 }

+ 2
- 1
Marlin/src/lcd/extensible_ui/ui_api.h Visa fil

@@ -138,7 +138,8 @@ namespace ExtUI {
138 138
       float getMeshPoint(const xy_uint8_t &pos);
139 139
       void setMeshPoint(const xy_uint8_t &pos, const float zval);
140 140
       void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval);
141
-      inline void onMeshUpdate(const xy_uint8_t &pos, const float zval) { onMeshUpdate(pos.x, pos.y, zval); }
141
+      inline void onMeshUpdate(const int8_t xpos, const int8_t ypos, const float zval) { onMeshUpdate((uint8_t)xpos, (uint8_t)ypos, zval); }
142
+      inline void onMeshUpdate(const xy_int8_t &pos, const float zval) { onMeshUpdate(pos.x, pos.y, zval); }
142 143
     #endif
143 144
   #endif
144 145
 

Laddar…
Avbryt
Spara