diff Discovery/Src/vpm.c @ 982:22d5b477c903 GasConsumption

Code cleanup: Remove disabled option to switch deco calc on/off
author Ideenmodellierer
date Sun, 02 Mar 2025 21:42:45 +0100 (8 weeks ago)
parents 79b522fbabe6
children
line wrap: on
line diff
--- a/Discovery/Src/vpm.c	Tue Feb 11 18:12:00 2025 +0100
+++ b/Discovery/Src/vpm.c	Sun Mar 02 21:42:45 2025 +0100
@@ -542,18 +542,10 @@
 
     for (i = 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++)
     {
-        if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero  >= depth_change[0] + 1)
-#ifdef ENABLE_DECOCALC_OPTION
-        		&& (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc)
-#endif
-        	)
+        if(pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero  >= depth_change[0] + 1)
             continue;
 
-        if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero <= 0)
-#ifdef ENABLE_DECOCALC_OPTION
-        	|| (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)
-#endif
-        )
+        if(pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero <= 0)
             break;
 
         j++;