# HG changeset patch # User JeanDo # Date 1362576108 -3600 # Node ID 53e41fa1e3f0897493e9e6a6fb6acfcf613a4713 # Parent 59a9402ba6ddb9831e96c95b3aabc5c7c6d4e9a7 BUGFIX Vault low_depth too. diff -r 59a9402ba6dd -r 53e41fa1e3f0 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Sun Feb 24 20:29:47 2013 +0100 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Wed Mar 06 14:21:48 2013 +0100 @@ -85,6 +85,7 @@ // 2012/02/25: [jDG] Looking for a more stable LOW grad factor reference. // 2012/09/10: [mH] Fill char_O_deco_time_for_log for logbook write // 2012/10/05: [jDG] Better deco_gas_volumes accuracy (average depth, switch between stop). +// 2013/03/05: [jDG] Should vault low_depth too. // // TODO: // + Allow to abort MD2 calculation (have to restart next time). @@ -178,6 +179,7 @@ static unsigned char internal_deco_depth[NUM_STOPS]; static float cns_vault; +static float low_depth_vault; static float pres_tissue_N2_vault[NUM_COMP]; static float pres_tissue_He_vault[NUM_COMP]; @@ -1055,7 +1057,7 @@ // toggle between calculation for nullzeit (bottom time), // deco stops // and more deco stops (continue) - switch( char_O_deco_status ) + switch( char_O_deco_status ) { case 3: //---- At surface: start a new dive ------------------------------ clear_deco_table(); @@ -2493,6 +2495,8 @@ RESET_C_STACK cns_vault = CNS_fraction; + low_depth_vault = low_depth; + for (x=0;x