Followup to meshCount patch

This commit is contained in:
Scott Lahteine
2019-11-20 04:57:04 -06:00
parent e81b946f06
commit ab9f0f2c4f
3 changed files with 3 additions and 4 deletions

View File

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

View File

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