Mercurial > public > mk2
comparison code_part1/OSTC_code_c_part2/p2_deco.c @ 340:ecbbbd423e86
BUGFIX save negativ temperatures in logbook (bbbug #6)
BUGFIX temperature & amb_pressure averaging done in private variable.
BUGFIX Signed averaging of temperature.
author | JeanDo |
---|---|
date | Fri, 20 May 2011 00:39:05 +0200 |
parents | cb77d1fa4535 |
children | b5b030c1ae7e |
comparison
equal
deleted
inserted
replaced
339:cb77d1fa4535 | 340:ecbbbd423e86 |
---|---|
669 assert(0); // Never go there... | 669 assert(0); // Never go there... |
670 } | 670 } |
671 } | 671 } |
672 | 672 |
673 ////////////////////////////////////////////////////////////////////////////// | 673 ////////////////////////////////////////////////////////////////////////////// |
674 // calc_next_decodepth_GF | 674 // calc_nextdecodepth |
675 // | 675 // |
676 // new in v.102 | 676 // new in v.102 |
677 // | 677 // |
678 // INPUT, changing during dive: | 678 // INPUT, changing during dive: |
679 // low_depth | 679 // low_depth |
1054 if (char_I_const_ppO2 == 0) | 1054 if (char_I_const_ppO2 == 0) |
1055 { | 1055 { |
1056 overlay unsigned char j; | 1056 overlay unsigned char j; |
1057 | 1057 |
1058 // Loop over all enabled gas, to find the deepest one, | 1058 // Loop over all enabled gas, to find the deepest one, |
1059 // above las gas, but below temp_depth_limit. | 1059 // above last used gas, but below temp_depth_limit. |
1060 for(j=0; j<NUM_GAS; ++j) | 1060 for(j=0; j<NUM_GAS; ++j) |
1061 { | 1061 { |
1062 // Gas not (yet) allowed ? Skip ! | 1062 // Gas not (yet) allowed ? Skip ! |
1063 if( temp_depth_limit > deco_gas_change[j] ) | 1063 if( temp_depth_limit > deco_gas_change[j] ) |
1064 continue; | 1064 continue; |