comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 319:4159c31abe31

BUGFIX surface pressure for deco in altitude.
author JeanDo
date Thu, 05 May 2011 02:16:20 +0200
parents 11be2470b9eb
children b7940978edc9
comparison
equal deleted inserted replaced
318:50e5b54b3fbd 319:4159c31abe31
1713 bcf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode 1713 bcf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode
1714 bcf tts_extra_time ;=1: Compute TTS if extra time spent at current depth 1714 bcf tts_extra_time ;=1: Compute TTS if extra time spent at current depth
1715 1715
1716 call get_free_EEPROM_location ; get last position in external EEPROM, may be up to 2 secs! 1716 call get_free_EEPROM_location ; get last position in external EEPROM, may be up to 2 secs!
1717 1717
1718 btfss simulatormode_active 1718 btfsc simulatormode_active
1719 bra diveloop_boot_1 1719 bra diveloop_boot_1
1720 ; Normal mode = Surface pressure is the pressure 30mn before dive. 1720 ; Normal mode = Surface pressure is the pressure 30mn before dive.
1721 movff last_surfpressure_30min+0,int_I_pres_surface+0 ; LOW copy surfacepressure to deco routine 1721 movff last_surfpressure_30min+0,int_I_pres_surface+0 ; LOW copy surfacepressure to deco routine
1722 movff last_surfpressure_30min+1,int_I_pres_surface+1 ; HIGH copy surfacepressure to deco routine 1722 movff last_surfpressure_30min+1,int_I_pres_surface+1 ; HIGH copy surfacepressure to deco routine
1723 bra diveloop_boot_2 1723 bra diveloop_boot_2