diff Discovery/Src/t3.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/t3.c	Sat Oct 10 18:30:13 2020 +0200
+++ b/Discovery/Src/t3.c	Sat Oct 10 18:34:10 2020 +0200
@@ -72,6 +72,7 @@
 	CVIEW_T3_GasList,
 	CVIEW_T3_Navigation,
 	CVIEW_T3_DepthData,
+	CVIEW_noneOrDebug,
     CVIEW_T3_END
 };
 
@@ -179,7 +180,7 @@
     if(status.base != BaseHome)
         return;
 
-    if(last_mode != MODE_DIVE)			/* Select customview */
+    if(last_mode != MODE_DIVE)			/* Select custom view */
     {
     	if((settingsGetPointer()->tX_customViewTimeout == 0) && (settingsGetPointer()->showDebugInfo))
     	{
@@ -187,7 +188,7 @@
     	}
     	else
     	{
-    		t3_selection_customview = settingsGetPointer()->tX_customViewPrimary;
+    		t3_selection_customview = settingsGetPointer()->tX_customViewPrimaryBF;
     	}
     	t3_change_customview(ACTION_END);
     }
@@ -198,6 +199,13 @@
     last_mode = stateUsed->mode;
 }
 
+void t3_set_customview_to_primary(void)
+{
+    if(stateUsed->mode == MODE_DIVE)
+    {
+    	t3_selection_customview = settingsGetPointer()->tX_customViewPrimaryBF;
+    }
+}
 
 /* Private functions ---------------------------------------------------------*/