# HG changeset patch
# User Jan Mulder <jlmulder@xs4all.nl>
# Date 1553763269 -3600
# Node ID 4a0ebade04f586b8db35637c5c2197d774fc2c94
# Parent  51a3aeffc6b3f8b290408eb684177eac5189dcf4
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>

diff -r 51a3aeffc6b3 -r 4a0ebade04f5 Discovery/Src/t7.c
--- 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';