Skip to content

Commit

Permalink
Mesh Editor - Overhaul (bigtreetech#2737)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslorand authored Apr 11, 2023
1 parent 2b2b43d commit f860ae1
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 464 deletions.
8 changes: 4 additions & 4 deletions TFT/src/User/API/parseACK.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,7 @@ void parseACK(void)
{
char tmpMsg[100];

strcpy (tmpMsg, "Mean: ");
sprintf (&tmpMsg[strlen(tmpMsg)], "%0.5f", ack_value());
sprintf(tmpMsg, "Mean: %0.5f", ack_value());

if (ack_continue_seen("Min: "))
sprintf(&tmpMsg[strlen(tmpMsg)], "\nMin: %0.5f", ack_value());
Expand All @@ -748,11 +747,12 @@ void parseACK(void)
else if (ack_seen("Standard Deviation: "))
{
char tmpMsg[100];
char * dialogMsg = (char *)getDialogMsgStr();

if (memcmp((char *)getDialogMsgStr(), "Mean: ", 6) == 0)
if (memcmp(dialogMsg, "Mean: ", 6) == 0)
{
levelingSetProbedPoint(-1, -1, ack_value()); // save probed Z value
sprintf(tmpMsg, "%s\nStandard Deviation: %0.5f", (char *)getDialogMsgStr(), ack_value());
sprintf(tmpMsg, "%s\nStandard Deviation: %0.5f", dialogMsg, ack_value());

popupReminder(DIALOG_TYPE_INFO, (uint8_t *)"Repeatability Test", (uint8_t *)tmpMsg);
}
Expand Down
Loading

0 comments on commit f860ae1

Please sign in to comment.