Fix problem described in issue # 6175
As it turns out... an unsigned int can not go to less than 0, so the loop never terminates.
This commit is contained in:
parent
a37a605fee
commit
3e9e94801f
|
@ -193,7 +193,7 @@
|
|||
const float current_xi = ubl.get_cell_index_x(current_position[X_AXIS] + (MESH_X_DIST) / 2.0),
|
||||
current_yi = ubl.get_cell_index_y(current_position[Y_AXIS] + (MESH_Y_DIST) / 2.0);
|
||||
|
||||
for (uint8_t j = UBL_MESH_NUM_Y_POINTS - 1; j >= 0; j--) {
|
||||
for (int8_t j = UBL_MESH_NUM_Y_POINTS - 1; j >= 0; j--) {
|
||||
for (uint8_t i = 0; i < UBL_MESH_NUM_X_POINTS; i++) {
|
||||
const bool is_current = i == current_xi && j == current_yi;
|
||||
|
||||
|
|
Loading…
Reference in a new issue