Explorar el Código

Followup to meshCount patch

Scott Lahteine hace 4 años
padre
commit
ab9f0f2c4f

+ 1
- 1
Marlin/src/gcode/bedlevel/abl/G29.cpp Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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…
Cancelar
Guardar