Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh Editor - Overhaul #2737

Merged
merged 1 commit into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Mesh Editor - Overhaul
  • Loading branch information
kisslorand committed Mar 23, 2023
commit 685255556802def1b17d47566edee3331c7b0070
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