Skip to content

Commit

Permalink
Corner leveling and language bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslorand committed Sep 27, 2023
1 parent 7d638de commit 729ba33
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions TFT/src/User/API/parseACK.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,12 @@ void parseACK(void)
if (ack_continue_seen("Z: "))
levelingSetProbedPoint(x, y, ack_value()); // save probed Z value
}
// parse G30 coordinate unreachable message
else if (ack_seen("Z Probe Past Bed"))
{
levelingSetProbedPoint(-1, -1, 0); // cancel waiting for coordinates
BUZZER_PLAY(SOUND_ERROR);
}
#if DELTA_PROBE_TYPE != 0
// parse and store Delta calibration settings
else if (ack_seen("Calibration OK"))
Expand Down
8 changes: 6 additions & 2 deletions TFT/src/User/Menu/LevelCorner.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void refreshValue(MENUITEMS * levelItems, uint8_t index)
menuDrawIconText(&levelItems->items[valIconIndex[index]], valIconIndex[index]);
}

void checkRefreshValue(MENUITEMS * levelItems)
bool checkRefreshValue(MENUITEMS * levelItems)
{
LEVELING_POINT levelingPoint = levelingGetProbedPoint();

Expand All @@ -47,7 +47,11 @@ void checkRefreshValue(MENUITEMS * levelItems)
refreshValue(levelItems, levelingPoint);

levelingResetProbedPoint(); // reset to check for new updates

return true;
}

return false;
}

// show M48 on icon
Expand Down Expand Up @@ -169,7 +173,7 @@ void menuLevelCorner(void)
levelingProbePoint(i);

// following loop needed to guarantee the value for each point beeing probed is updated at least one time on the menu
TASK_LOOP_WHILE(isNotEmptyCmdQueue(), checkRefreshValue(&levelCornerItems));
TASK_LOOP_WHILE(!checkRefreshValue(&levelCornerItems))
}

break;
Expand Down

0 comments on commit 729ba33

Please sign in to comment.