diff Common/Inc/settings.h @ 819:24b39a432bc2

Added debug information in case an error in the settings has been detected: The "Check Settings" warning now provides the index of the first parameter which has been corrected as well as the number of corrections.
author Ideenmodellierer
date Sun, 24 Sep 2023 18:39:26 +0200
parents dd7ce655db26
children b7d93ff6b3b2 fa431d42b5fb
line wrap: on
line diff
--- a/Common/Inc/settings.h	Thu Sep 14 13:24:30 2023 +0200
+++ b/Common/Inc/settings.h	Sun Sep 24 18:39:26 2023 +0200
@@ -176,6 +176,11 @@
     SETPOINT_INDEX_AUTO_DECO,
 };
 
+typedef struct
+{
+	uint8_t FirstCorrection;
+	uint8_t Corrections;
+} SSettingsStatus;
 
 /* SSettings
 	 * gas[0] and setpoint[0] are the special ones configurable during the dive
@@ -381,6 +386,7 @@
 uint8_t settingsHelperButtonSens_translate_percentage_to_hwOS_values(uint8_t inputValuePercentage);
 uint8_t settingsHelperButtonSens_translate_hwOS_values_to_percentage(uint8_t inputValuePIC);
 
+void get_CorrectionStatus(SSettingsStatus* Status);
 void reset_SettingWarning();
 uint8_t isSettingsWarning();