changeset 883:7755a476f164 Evo_2_23

Added compile switch for predive check menu: The predive check is still in development and not finalized => added compile switch and deactivated access per default.
author Ideenmodellierer
date Sat, 31 Aug 2024 18:14:40 +0200
parents 608d3e918146
children 940f8e132638
files Common/Inc/configuration.h Discovery/Src/tMenuEditXtra.c Discovery/Src/tMenuXtra.c
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Common/Inc/configuration.h	Sat Aug 31 17:35:52 2024 +0200
+++ b/Common/Inc/configuration.h	Sat Aug 31 18:14:40 2024 +0200
@@ -78,4 +78,7 @@
 /* Enable if an external pressure sensor is connected at ADC channel3 (used for sensor verification) */
 /* #define ENABLE_EXTERNAL_PRESSURE */
 
+/* Enable if the menu item predive check shall be available */
+/* #define ENABLE_PREDIVE_CHECK */
+
 #endif
--- a/Discovery/Src/tMenuEditXtra.c	Sat Aug 31 17:35:52 2024 +0200
+++ b/Discovery/Src/tMenuEditXtra.c	Sat Aug 31 18:14:40 2024 +0200
@@ -120,8 +120,10 @@
 			case 4: openEdit_PSCR();
 				break;
 #endif
+#ifdef ENABLE_PREDIVE_CHECK
 			case 5:	openInfo_PreDive();
 				break;
+#endif
 			default:
 				break;
 		}
--- a/Discovery/Src/tMenuXtra.c	Sat Aug 31 17:35:52 2024 +0200
+++ b/Discovery/Src/tMenuXtra.c	Sat Aug 31 18:14:40 2024 +0200
@@ -213,6 +213,7 @@
             textPointer += 2;
          }
 #endif
+#ifdef ENABLE_PREDIVE_CHECK
         if((line == 0) || (line == 5))
         {
       		if((pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_ANADIG) || (pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_DIGITAL))
@@ -229,6 +230,7 @@
       		strcpy(&text[textPointer],"\n\r");
       		textPointer += 2;
         }
+#endif
     }
     return StMXTRA;
 }