瀏覽代碼

Followup to meshCount patch

Scott Lahteine 4 年之前
父節點
當前提交
ab9f0f2c4f
共有 3 個文件被更改,包括 3 次插入4 次删除
  1. 1
    1
      Marlin/src/gcode/bedlevel/abl/G29.cpp
  2. 1
    2
      Marlin/src/lcd/extensible_ui/ui_api.h
  3. 1
    1
      Marlin/src/lcd/extui_example.cpp

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

@@ -225,7 +225,7 @@ G29_TYPE GcodeSuite::G29() {
225 225
   #if ABL_GRID
226 226
 
227 227
     #if ENABLED(PROBE_MANUALLY)
228
-      ABL_VAR xy_uint8_t meshCount;
228
+      ABL_VAR xy_int8_t meshCount;
229 229
     #endif
230 230
 
231 231
     ABL_VAR xy_float_t probe_position_lf, probe_position_rb;

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

@@ -137,8 +137,7 @@ namespace ExtUI {
137 137
       bed_mesh_t& getMeshArray();
138 138
       float getMeshPoint(const xy_uint8_t &pos);
139 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);
141
-      inline void onMeshUpdate(const int8_t xpos, const int8_t ypos, const float zval) { onMeshUpdate((uint8_t)xpos, (uint8_t)ypos, zval); }
140
+      void onMeshUpdate(const int8_t xpos, const int8_t ypos, const float zval);
142 141
       inline void onMeshUpdate(const xy_int8_t &pos, const float zval) { onMeshUpdate(pos.x, pos.y, zval); }
143 142
     #endif
144 143
   #endif

+ 1
- 1
Marlin/src/lcd/extui_example.cpp 查看文件

@@ -89,7 +89,7 @@ namespace ExtUI {
89 89
     // whether successful or not.
90 90
   }
91 91
 
92
-  void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval) {
92
+  void onMeshUpdate(const int8_t xpos, const int8_t ypos, const float zval) {
93 93
     // This is called when any mesh points are updated
94 94
   }
95 95
 }

Loading…
取消
儲存