# HG changeset patch # User Ideenmodellierer # Date 1725120880 -7200 # Node ID 7755a476f164dba12ecd4728900b92525c24124c # Parent 608d3e918146271a926a047f61706f43c41c9ff1 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. diff -r 608d3e918146 -r 7755a476f164 Common/Inc/configuration.h --- 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 diff -r 608d3e918146 -r 7755a476f164 Discovery/Src/tMenuEditXtra.c --- 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; } diff -r 608d3e918146 -r 7755a476f164 Discovery/Src/tMenuXtra.c --- 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; }