Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode.asm @ 457:993e681e89cf
no decodata in logbook for apnea dives
author | heinrichsweikamp |
---|---|
date | Thu, 01 Sep 2011 11:57:11 +0200 |
parents | 38b38b105782 |
children | d300e6ad6f66 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Wed Aug 31 09:27:16 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Thu Sep 01 11:57:11 2011 +0200 @@ -561,7 +561,7 @@ ; shift address for header ; the header will be stored after the dive - incf_eeprom_address d'57' ; Macro, that adds 8Bit to eeprom_address:2 with banking at 0x8000 + incf_eeprom_address d'57' ; Macro, that adds 8Bit to eeprom_address:2 store_dive_data2: SAFE_2BYTE_COPY rel_pressure, lo @@ -778,6 +778,9 @@ movf decodata+1,W ; no stop time of length of first stop call write_external_eeprom GETCUSTOM8 d'22' + + btfsc FLAG_apnoe_mode ; in Apnoe mode? + movlw d'0' ; Yes, set to zero movwf divisor_deco ; Reload divisor from CF return @@ -1764,6 +1767,8 @@ GETCUSTOM8 d'21' movwf divisor_temperature ; load divisors for profile storage GETCUSTOM8 d'22' + btfsc FLAG_apnoe_mode ; in Apnoe mode? + movlw d'0' ; Yes, set to zero movwf divisor_deco GETCUSTOM8 d'23' movwf divisor_gf