diff Discovery/Src/vpm.c @ 160:e3ca52b8e7fa

Merge with FlipDisplay
author heinrichsweikamp
date Thu, 07 Mar 2019 15:06:43 +0100
parents e1d66bc78f9a
children 3949781096d4
line wrap: on
line diff
--- a/Discovery/Src/vpm.c	Sat Oct 06 15:02:11 2018 +0200
+++ b/Discovery/Src/vpm.c	Thu Mar 07 15:06:43 2019 +0100
@@ -1097,9 +1097,6 @@
     static int dp_max;
     static float surfacetime;
     _Bool first_stop = false;
-// hw 1601209 float tissue_He_saturation[16];
-// hw 1601209	float tissue_N2_saturation[16];
-    float vpm_buehlmann_safety_gradient = 1.0f - (((float)pDiveSettings->vpm_conservatism) / 40);
     max_first_stop_depth = fmaxf(first_stop_depth,max_first_stop_depth);
     if(begin)
     {
@@ -2110,10 +2107,13 @@
 
     //deco_ceiling_depth = next_stop +1;	//deco_ceiling_depth = next_stop + 1;
     if(!vpm_violates_buehlmann)
+    {
         calc_deco_ceiling(&deco_ceiling_depth, false); //weg, weil auf jeden Fall schleife für safety und so konservativer
+    }
     else
+    {
         deco_ceiling_depth = next_stop + 1;
-
+    }
         if(deco_ceiling_depth > next_stop)
         {
             while (deco_ceiling_depth > next_stop)
@@ -2222,9 +2222,10 @@
                 }
             }
             if(buehlmann_wait)
+            {
                 vpm_violates_buehlmann = true;
-
-                if(!buehlmann_wait)
+            }
+            if(!buehlmann_wait)
             {
                 if(deco_ceiling_depth < next_stop)
                 {