diff Discovery/Src/settings.c @ 733:7b0e020513e3

Optical sensor as default: The optical sensor is now set as default configuration ensuring that the external interface is switched off per default. Otherwise power would be consumed e.g. by the ADC even no sensors are connectet because OSTC is used for OC dives only.
author Ideenmodellierer
date Sun, 15 Jan 2023 21:48:34 +0100
parents 5143e927219f
children 5078da3845c0
line wrap: on
line diff
--- a/Discovery/Src/settings.c	Sun Jan 15 21:45:14 2023 +0100
+++ b/Discovery/Src/settings.c	Sun Jan 15 21:48:34 2023 +0100
@@ -325,9 +325,9 @@
 	.scrubTimerMax_Obsolete = 0,
 	.scrubTimerCur_Obsolete = 0,
 	.scrubTimerMode = SCRUB_TIMER_OFF,
-	.ext_sensor_map[0] = SENSOR_ANALOG,
-	.ext_sensor_map[1] = SENSOR_ANALOG,
-	.ext_sensor_map[2] = SENSOR_ANALOG,
+	.ext_sensor_map[0] = SENSOR_OPTIC,
+	.ext_sensor_map[1] = SENSOR_OPTIC,
+	.ext_sensor_map[2] = SENSOR_OPTIC,
 	.ext_sensor_map[3] = SENSOR_NONE,
 	.ext_sensor_map[4] = SENSOR_NONE,
 };
@@ -523,9 +523,9 @@
     	pSettings->scrubberData[1].lastDive.Date = 0;
     	pSettings->scrubberData[1].lastDive.Year = 0;
     	// no break;
-    case 0xFFFF0023: pSettings->ext_sensor_map[0] = SENSOR_ANALOG;
-    				 pSettings->ext_sensor_map[1] = SENSOR_ANALOG;
-    				 pSettings->ext_sensor_map[2] = SENSOR_ANALOG;
+    case 0xFFFF0023: pSettings->ext_sensor_map[0] = SENSOR_OPTIC;
+    				 pSettings->ext_sensor_map[1] = SENSOR_OPTIC;
+    				 pSettings->ext_sensor_map[2] = SENSOR_OPTIC;
     				 pSettings->ext_sensor_map[3] = SENSOR_NONE;
     				 pSettings->ext_sensor_map[4] = SENSOR_NONE;
     	// no break;
@@ -1539,9 +1539,9 @@
 			|| (Settings.ext_sensor_map[3] >= SENSOR_END)
 			|| (Settings.ext_sensor_map[4] >= SENSOR_END))
     {
-    	Settings.ext_sensor_map[0] = SENSOR_ANALOG;
-    	Settings.ext_sensor_map[1] = SENSOR_ANALOG;
-    	Settings.ext_sensor_map[2] = SENSOR_ANALOG;
+    	Settings.ext_sensor_map[0] = SENSOR_OPTIC;
+    	Settings.ext_sensor_map[1] = SENSOR_OPTIC;
+    	Settings.ext_sensor_map[2] = SENSOR_OPTIC;
     	Settings.ext_sensor_map[3] = SENSOR_NONE;
     	Settings.ext_sensor_map[4] = SENSOR_NONE;
        	corrections++;