diff Discovery/Src/settings.c @ 834:2a8af51ab04d Evo_2_23

Added event based display changes for big font view: It is now possible to activate "Autofocus" option in custom view dialog. This enables automatic switching of the current view depending on current dive situation. Because T7 view already displays a lot of information this feature targets the T3 view.
author Ideenmodellierer
date Sun, 17 Dec 2023 21:14:17 +0100
parents b7d93ff6b3b2
children 2cab242c9a4a
line wrap: on
line diff
--- a/Discovery/Src/settings.c	Sun Dec 17 21:10:04 2023 +0100
+++ b/Discovery/Src/settings.c	Sun Dec 17 21:14:17 2023 +0100
@@ -89,7 +89,7 @@
  * There might even be entries with fixed values that have no range
  */
 const SSettings SettingsStandard = {
-    .header = 0xFFFF0029,
+    .header = 0xFFFF002A,
     .warning_blink_dsec = 8 * 2,
     .lastDiveLogId = 0,
     .logFlashNextSampleStartAddress = SAMPLESTART,
@@ -339,6 +339,7 @@
     .compassDeclinationDeg = 0,
     .delaySetpointLow = false,
     .timerDurationS = 180,
+	.cvAutofocus = 0,
 };
 
 /* Private function prototypes -----------------------------------------------*/
@@ -595,6 +596,9 @@
             }
         }
     	// no break;
+    case 0xFFFF0029:
+    	Settings.cvAutofocus = 0;
+    	// no break;
     default:
         pSettings->header = pStandard->header;
         break; // no break before!!
@@ -1833,6 +1837,12 @@
         setFirstCorrection(parameterId);
     }
     parameterId++;
+    if(Settings.cvAutofocus > 1)
+    {
+    	 corrections++;
+    	 Settings.cvAutofocus = 0;
+    }
+    parameterId++;
     if(corrections)
     {
     	settingsWarning = 1;