# HG changeset patch # User JeanDo # Date 1323459826 -3600 # Node ID 48bbb1a8102723cafd817d2dab87239b9a13e2b0 # Parent e33a8ac4b660013b65d98df4b14eef42b98a708f New no need to check stops while in NDL. diff -r e33a8ac4b660 -r 48bbb1a81027 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Fri Dec 09 20:43:43 2011 +0100 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Fri Dec 09 20:43:46 2011 +0100 @@ -1306,7 +1306,10 @@ calc_nullzeit(); check_ndl(); - char_O_deco_status = 2; // calc ascent next time. + if( char_O_nullzeit > 0 ) // Some NDL time left ? + char_O_deco_status = 0; // YES: recalc ndl next time. + else + char_O_deco_status = 2; // NO: calc ascent next time. break; case 2: //---- Simulate ascent to first stop ----------------------------- @@ -1460,13 +1463,6 @@ int_O_gtissue_limit = (short)(calc_lead_tissue_limit * 1000); int_O_gtissue_press = (short)((pres_tissue_N2[char_O_gtissue_no] + pres_tissue_He[char_O_gtissue_no]) * 1000); - - // if guiding tissue can not be exposed to surface pressure immediately - if( calc_lead_tissue_limit > pres_surface && char_O_deco_status == 0) - { - char_O_nullzeit = 0; // deco necessary - char_O_deco_status = 2; // calculate ascent on next iteration. - } }