# HG changeset patch # User Ideenmodellierer # Date 1650913648 -7200 # Node ID 5575f21382d597bcba6f312fcae1f070fffca0e0 # Parent 52df13712fa37b51a337b63bd8e2e15996dc5220 Bugfix visualization better setpoint: Due to a formating mistake a complete float was show in case a better setpoint had been suggested. The string formating has been updated to show a 4 characters string diff -r 52df13712fa3 -r 5575f21382d5 Discovery/Src/t7.c --- a/Discovery/Src/t7.c Fri Apr 22 18:24:43 2022 +0200 +++ b/Discovery/Src/t7.c Mon Apr 25 21:07:28 2022 +0200 @@ -2472,7 +2472,7 @@ TextR1[textPointer++] = '\a'; TextR1[textPointer++] = '\001'; TextR1[textPointer++] = ' '; - textPointer += snprintf(&TextR1[textPointer],TEXTSIZE,"%f01.2",((float)(stateUsed->diveSettings.setpoint[actualBetterSetpointId()].setpoint_cbar))/100); + textPointer += snprintf(&TextR1[textPointer],TEXTSIZE,"%01.2f",(float)(stateUsed->diveSettings.setpoint[actualBetterSetpointId()].setpoint_cbar) / 100.0); TextR1[textPointer++] = '?'; TextR1[textPointer++] = ' '; TextR1[textPointer++] = 0;