diff src/p2_deco.c @ 34:d7e6dfd5b498

small cleanup
author heinrichsweikamp
date Sun, 04 Aug 2013 17:52:44 +0200
parents 5d4a4fb0e8a6
children c61b7a4e317c
line wrap: on
line diff
--- a/src/p2_deco.c	Sun Aug 04 15:56:46 2013 +0200
+++ b/src/p2_deco.c	Sun Aug 04 17:52:44 2013 +0200
@@ -216,7 +216,6 @@
 static float		float_saturation_multiplier;    // new in v.101
 static float		float_desaturation_multiplier;  // new in v.101
 static float		float_deco_distance;            // new in v.101
-//static char		flag_in_divemode;		// new in v.108
 
 static unsigned char    deco_gas_change[NUM_GAS];       // new in v.109
 
@@ -898,7 +897,6 @@
     }
 
     clear_deco_table();
-//    flag_in_divemode = 0;
     char_O_deco_status = 0;
     char_O_nullzeit = 0;
     int_O_ascenttime = 0;
@@ -1146,12 +1144,12 @@
 {
     overlay unsigned char loop;
 
-    for(loop = 0; loop < 32; ++loop)
+    for(loop = 0; loop < 16; ++loop)
     {
         // Limit loops to 512ms, using timer 5:
       	if( tmr5() & (512*32) )
       	    break;
-        // Do not ascent while doing a gas switch ?
+
             if( calc_nextdecodepth() )
             {
                 if( temp_depth_limit == 0 )