diff code_part1/OSTC_code_c_part2/p2_deco.c @ 744:7e7e98247a8a

Merge
author JeanDo
date Mon, 12 Aug 2013 15:12:14 +0200
parents c498d6972087 8466932a2fcf
children 6724df41d4f1
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Thu Aug 08 11:06:52 2013 +0200
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Mon Aug 12 15:12:14 2013 +0200
@@ -370,8 +370,7 @@
 static short read_custom_function(PARAMETER unsigned char cf)
 {
 #ifdef CROSS_COMPILE
-    return (cf & 32) ? eeprom.bank1_CF[cf-32].value.lo
-                     : eeprom.bank0_CF[cf   ].value.lo;
+    return READ_CF_MACRO(cf);
 #else
     extern unsigned char hi, lo;
     extern void getcustom15();
@@ -1062,7 +1061,7 @@
     case 3: //---- At surface: start a new dive ------------------------------
         clear_deco_table();
         copy_deco_table();
-        int_O_ascenttime = 0;       // Reset DTR.
+        int_O_ascenttime = 0;       // Reset TTS.
         int_O_extra_ascenttime = 0;
         char_O_nullzeit = 0;        // Reset bottom time.
         char_O_deco_status = 0;     // Calc bottom-time/nullzeit next iteration.
@@ -2242,7 +2241,7 @@
     sim_gas_last_depth = 0;             // Surface gas marker.
     gas_switch_set();                   // Sets initial calc_N2/He_ratio
 
-    //---- CCR mode : do the full TTS at once --------------------------------
+    //---- CCR mode : do the full CNS at once --------------------------------
     if( char_I_const_ppO2 != 0 )
     {
         overlay unsigned short t;       // Needs 16bits here !