diff Common/Inc/settings.h @ 796:75ace7af8212

Expanded Sensor map structure: In the previous version the number of possible sensors were set to 5 based on the assumption that ADC slots are shared with digital O2 sensors. As result three of five slots would have been limited to O2 measurement usecase, leaving just two slots left for other sensors (e.g. CO2). In order to have as much flexibility (and less risk for data structure changes) the number of sensors has been set to 7 (3 ADC + 4 UART MUX)
author Ideenmodellierer
date Mon, 31 Jul 2023 20:00:06 +0200
parents 4abfb8a2a435
children dd7ce655db26
line wrap: on
line diff
--- a/Common/Inc/settings.h	Mon Jul 31 19:50:36 2023 +0200
+++ b/Common/Inc/settings.h	Mon Jul 31 20:00:06 2023 +0200
@@ -243,8 +243,8 @@
 
 	uint8_t scubberActiveId;									/* redefined in 0xFFFF0023 */
 	SScrubberData scrubberData[2];
-	uint8_t ext_sensor_map[5];
-	uint8_t buttonLockActive;										/* redefined in 0xFFFF0025 */
+	uint8_t ext_sensor_map_Obsolete[5];
+	uint8_t buttonLockActive;									/* redefined in 0xFFFF0025 */
 	int8_t compassDeclinationDeg;
     uint8_t delaySetpointLow;                                         /* redefined in 0xFFFF0026 */
 	uint8_t Future_SPARE[FUTURE_SPARE_SIZE];					/* redefined in 0xFFFF0020 (old scooter Block was 32 byte)*/
@@ -303,6 +303,7 @@
 	uint16_t scrubTimerMax_Obsolete;	/* have been replaced with new scrubber data format */
 	uint16_t scrubTimerCur_Obsolete;	/* have been replaced with new scrubber data format */
 	uint8_t scrubTimerMode;
+	uint8_t ext_sensor_map[8];		/* redefined in 0xFFFF0027 */
 } SSettings;
 
 typedef struct