changeset 305:305f251cc981 cleanup-4

bugfix, consistency: show deco/NDL really after 1 minute divetime Related to commit 02d10d955be2. We intended to show deco/NDL after 1 minute divetime, but we included the surface seconds as well. And yes, this can hardly be called a bugfix. Its simply more consistent to relate the actual divetime on the display (which is without surface seconds) with the appearance of deco/NDL after exactly 1 minute, instead of about 1 minute. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Tue, 21 May 2019 11:11:05 +0200
parents 43b44f8d4fb0
children 2f43419102c8
files Discovery/Src/buehlmann.c Discovery/Src/vpm.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/buehlmann.c	Mon May 20 13:06:02 2019 +0200
+++ b/Discovery/Src/buehlmann.c	Tue May 21 11:11:05 2019 +0200
@@ -123,7 +123,7 @@
 	
 	stoplist = pDecoInfo->output_stop_length_seconds;
 
-	if(pLifeData->dive_time_seconds < 60)
+	if(pLifeData->dive_time_seconds_without_surface_time < 60)
 		return;
 
 	// clean stop list
--- a/Discovery/Src/vpm.c	Mon May 20 13:06:02 2019 +0200
+++ b/Discovery/Src/vpm.c	Tue May 21 11:11:05 2019 +0200
@@ -240,7 +240,7 @@
         pDECOINFO->output_stop_length_seconds[i] = 0;
     }
 
-    if(pINPUT->dive_time_seconds < 60)
+    if(pINPUT->dive_time_seconds_without_surface_time < 60)
     {
         vpm_calc_status = CALC_NDL;
         return vpm_calc_status;