changeset 536:54c5ec8416c4

Changed visualization of Depth / temperatur / debugview entry Without debug view schema 0 is not displayed while it was shown in case of an activated debug view. Changed implementation to have the same look independend from active state of debug view
author Ideenmodellierer
date Wed, 07 Oct 2020 17:15:27 +0200
parents 666cafac87ab
children 0ad0b26ec56b
files Discovery/Src/tMenuSystem.c
diffstat 1 files changed, 17 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/tMenuSystem.c	Wed Oct 07 17:12:44 2020 +0200
+++ b/Discovery/Src/tMenuSystem.c	Wed Oct 07 17:15:27 2020 +0200
@@ -195,12 +195,9 @@
 
             if(data->tX_colorscheme != 0)
             {
-                text[textPointer++] = ' ';
-                text[textPointer++] = ' ';
-                text[textPointer++] = ' ';
-                text[textPointer++] = ' ';
+            	text[textPointer++] = ' ';
+                text[textPointer++] = '/';
                 text[textPointer++] = '\027';
-                text[textPointer++] = '/';
                 text[textPointer++] = ' ';
                 text[textPointer++] = '0' + data->tX_colorscheme;
                 text[textPointer++] = '\020';
@@ -211,27 +208,32 @@
             if(data->nonMetricalSystem == 0)
             {
             text[textPointer++] = 'm';
+            text[textPointer++] = ' ';
             text[textPointer++] = '/';
+            text[textPointer++] = ' ';
             text[textPointer++] = 'C';
+            text[textPointer++] = ' ';
             }
             else
             {
             text[textPointer++] = 'f';
             text[textPointer++] = 't';
-            text[textPointer++] = '/';
-            text[textPointer++] = 'F';
-            }
-
             text[textPointer++] = ' ';
-            text[textPointer++] = ' ';
-            text[textPointer++] = ' ';
-            text[textPointer++] = ' ';
-            text[textPointer++] = '\027';
             text[textPointer++] = '/';
             text[textPointer++] = ' ';
-            text[textPointer++] = '0' + data->tX_colorscheme;
-            text[textPointer++] = '\020';
+            text[textPointer++] = 'F';
             text[textPointer++] = ' ';
+            }
+            if(data->tX_colorscheme != 0)
+            {
+            	text[textPointer++] = '/';
+            	text[textPointer++] = '\027';
+            	text[textPointer++] = ' ';
+            	text[textPointer++] = '0' + data->tX_colorscheme;
+            	text[textPointer++] = ' ';
+            	text[textPointer++] = '\020';
+            }
+            text[textPointer++] = '/';
             text[textPointer++] = ' ';
             text[textPointer++] = 'd';
             text[textPointer++] = 'e';