changeset 215:4a0ebade04f5 edit-fix

Bugfix, trivial: correctly present avg depth in overview custom And another trivial 2 letter fix, to present the avg depth value with 1 decimal to be consistent with the lower left corner presentation (if selected). Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Thu, 28 Mar 2019 09:54:29 +0100
parents 51a3aeffc6b3
children 7012a521fa95
files Discovery/Src/t7.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/t7.c	Thu Mar 28 08:26:17 2019 +0100
+++ b/Discovery/Src/t7.c	Thu Mar 28 09:54:29 2019 +0100
@@ -3099,9 +3099,9 @@
     text[textpointer++] = '\r';
     text[textpointer++] = '\t';
     if((pDecoinfoStandard->output_ceiling_meter > 99.9f) || (settingsGetPointer()->nonMetricalSystem))
-        textpointer += snprintf(&text[textpointer],10,"\020%01.1f",unit_depth_float(pDecoinfoStandard->output_ceiling_meter));
+        textpointer += snprintf(&text[textpointer],10,"\020%01.0f",unit_depth_float(pDecoinfoStandard->output_ceiling_meter));
     else
-        textpointer += snprintf(&text[textpointer],10,"\020%01.0f",pDecoinfoStandard->output_ceiling_meter);
+        textpointer += snprintf(&text[textpointer],10,"\020%01.1f",pDecoinfoStandard->output_ceiling_meter);
     text[textpointer++] = '\n';
     text[textpointer++] = '\r';
     text[textpointer++] = '\t';