Mercurial > public > hwos_code
diff src/ghostwriter.asm @ 35:eca4a201d8cf
change apnea timeout, do no longer store apnea dives in logbook
author | heinrichsweikamp |
---|---|
date | Sun, 04 Aug 2013 18:04:37 +0200 |
parents | e402813343b6 |
children | e4e91fe8b09d |
line wrap: on
line diff
--- a/src/ghostwriter.asm Sun Aug 04 17:52:44 2013 +0200 +++ b/src/ghostwriter.asm Sun Aug 04 18:04:37 2013 +0200 @@ -30,11 +30,14 @@ return ; Yes, discard everything endif + btfsc FLAG_apnoe_mode ; In Apnoe mode? + return ; Yes, discard everything + SAFE_2BYTE_COPY rel_pressure, lo movf lo,W ; store depth with every sample - rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash + rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash movf hi,W - rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash + rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash ;First, find out how many bytes will append to this sample.... clrf ProfileFlagByte ; clear number of bytes to append @@ -299,7 +302,10 @@ goto ghostwriter_end_dive_common ; Yes, discard everything endif - ; Dive finished (and longer then one minute or Apnoe timeout occured) + btfsc FLAG_apnoe_mode ; In Apnoe mode? + goto ghostwriter_end_dive_common ; Yes, discard everything + + ; Dive finished (and longer then one minute) btfsc FLAG_apnoe_mode ; Calc max. depth (again) for very short apnoe dives call apnoe_calc_maxdepth