Match onMeshUpdate() index sign (#15920)

This commit is contained in:
InsanityAutomation 2019-11-20 00:16:43 -05:00 committed by Scott Lahteine
parent 4d9a5fef3b
commit 4d4e692c81
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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