comparison Discovery/Src/buehlmann.c @ 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 24ff72e627f4
children b7d93ff6b3b2
comparison
equal deleted inserted replaced
304:43b44f8d4fb0 305:305f251cc981
121 memcpy(gTissue_helium_bar, pLifeData->tissue_helium_bar, (4*16)); 121 memcpy(gTissue_helium_bar, pLifeData->tissue_helium_bar, (4*16));
122 gGF_value = ((float)pDiveSettings->gf_low) / 100.0f; 122 gGF_value = ((float)pDiveSettings->gf_low) / 100.0f;
123 123
124 stoplist = pDecoInfo->output_stop_length_seconds; 124 stoplist = pDecoInfo->output_stop_length_seconds;
125 125
126 if(pLifeData->dive_time_seconds < 60) 126 if(pLifeData->dive_time_seconds_without_surface_time < 60)
127 return; 127 return;
128 128
129 // clean stop list 129 // clean stop list
130 for(i = 0; i < DECOINFO_STRUCT_MAX_STOPS; i++) 130 for(i = 0; i < DECOINFO_STRUCT_MAX_STOPS; i++)
131 stoplist[i] = 0; 131 stoplist[i] = 0;