Mercurial > public > ostc4
comparison Discovery/Src/vpm.c @ 312:e84a2486933e
Merged in janlmulder/ostc4/cleanup-4 (pull request #25)
Fix stopwatch and divetime not in sync
author | heinrichsweikamp <bitbucket@heinrichsweikamp.com> |
---|---|
date | Fri, 31 May 2019 06:22:50 +0000 |
parents | 305f251cc981 |
children | b7d93ff6b3b2 |
comparison
equal
deleted
inserted
replaced
299:b70c26be71a0 | 312:e84a2486933e |
---|---|
238 for(int i=0;i<DECOINFO_STRUCT_MAX_STOPS;i++) | 238 for(int i=0;i<DECOINFO_STRUCT_MAX_STOPS;i++) |
239 { | 239 { |
240 pDECOINFO->output_stop_length_seconds[i] = 0; | 240 pDECOINFO->output_stop_length_seconds[i] = 0; |
241 } | 241 } |
242 | 242 |
243 if(pINPUT->dive_time_seconds < 60) | 243 if(pINPUT->dive_time_seconds_without_surface_time < 60) |
244 { | 244 { |
245 vpm_calc_status = CALC_NDL; | 245 vpm_calc_status = CALC_NDL; |
246 return vpm_calc_status; | 246 return vpm_calc_status; |
247 } | 247 } |
248 pVpm = pVPM; | 248 pVpm = pVPM; |