diff Discovery/Src/tMenuSystem.c @ 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 970d8040c0e3
children dd7ce655db26
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';