diff Discovery/Src/settings.c @ 541:6fbf7cd391cb

Added default view selection and auto return to view to t3 visualization: In previous version the ostc tried to applied the t7 default view selection to t3 view. As t3 has different views than t3, a new selection menu has been added to the custom view menu enabling the selection of the big font default view. In parallel the auto return function has been adapted to use the new parameter.
author Ideenmodellierer
date Sat, 10 Oct 2020 18:34:10 +0200
parents d784f281833a
children 6960df7ddb09
line wrap: on
line diff
--- a/Discovery/Src/settings.c	Sat Oct 10 18:30:13 2020 +0200
+++ b/Discovery/Src/settings.c	Sat Oct 10 18:34:10 2020 +0200
@@ -313,6 +313,7 @@
 	.MotionDetection = MOTION_DETECT_OFF,
 	.cv_config_BigScreen = 0xFFFFFFFF,
 	.compassInertia = 0,
+	.tX_customViewPrimaryBF = CVIEW_T3_Decostop,
 };
 
 /* Private function prototypes -----------------------------------------------*/
@@ -467,7 +468,8 @@
         pSettings->cv_config_BigScreen &= pSettings->cv_configuration ^= 1 << CVIEW_T3_DepthData;
         // no break
     case 0xFFFF001B:
-    	pSettings->compassInertia = 0; 	/* no inertia */
+    	pSettings->compassInertia = 0; 			/* no inertia */
+    	pSettings->tX_customViewPrimaryBF = CVIEW_T3_Decostop;
         // no break
     default:
         pSettings->header = pStandard->header;
@@ -1387,6 +1389,11 @@
     	Settings.compassInertia = 0;
 	    corrections++;
    	}
+    if(Settings.tX_customViewPrimaryBF > CVIEW_T3_END)
+    {
+    	Settings.tX_customViewPrimaryBF = CVIEW_T3_Decostop;
+    	corrections++;
+    }
 
     if(corrections > 255)
         return 255;