瀏覽代碼

Match onMeshUpdate() index sign (#15920)

InsanityAutomation 5 年之前
父節點
當前提交
4d4e692c81

+ 1
- 1
Marlin/src/gcode/bedlevel/abl/G29.cpp 查看文件

678
 
678
 
679
       measured_z = 0;
679
       measured_z = 0;
680
 
680
 
681
-      xy_uint8_t meshCount;
681
+      xy_int8_t meshCount;
682
 
682
 
683
       // Outer loop is X with PROBE_Y_FIRST enabled
683
       // Outer loop is X with PROBE_Y_FIRST enabled
684
       // Outer loop is Y with PROBE_Y_FIRST disabled
684
       // Outer loop is Y with PROBE_Y_FIRST disabled

+ 1
- 1
Marlin/src/lcd/extensible_ui/lib/lulzbot/marlin_events.cpp 查看文件

127
   }
127
   }
128
 
128
 
129
   #if HAS_LEVELING && HAS_MESH
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
   #endif
132
   #endif
133
 }
133
 }

+ 2
- 1
Marlin/src/lcd/extensible_ui/ui_api.h 查看文件

138
       float getMeshPoint(const xy_uint8_t &pos);
138
       float getMeshPoint(const xy_uint8_t &pos);
139
       void setMeshPoint(const xy_uint8_t &pos, const float zval);
139
       void setMeshPoint(const xy_uint8_t &pos, const float zval);
140
       void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval);
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
     #endif
143
     #endif
143
   #endif
144
   #endif
144
 
145
 

Loading…
取消
儲存