Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 730:ae641bcb0d02
store a bailout event in the logbook
author | heinrichsweikamp |
---|---|
date | Sun, 16 Jun 2013 16:09:02 +0200 |
parents | b5ffde7e569e |
children | 65822fa08333 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm Sun Jun 16 15:50:37 2013 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm Sun Jun 16 16:09:02 2013 +0200 @@ -619,7 +619,8 @@ bsf decoplan_invalid ; The decoplan needs to updated clrf WREG movff WREG,char_O_deco_status ; Restart decoplan computation mH - bsf is_bailout ;=1: CC mode, but bailout active! + bsf is_bailout ;=1: CC mode, but bailout active! + bsf store_bailout_event clrf lo ; clear Setpoint, DISP_const_ppO2_value now displayes "Bail" movff lo,char_I_const_ppO2 movlw 6 @@ -745,7 +746,9 @@ bra divemode_set_xgas ; Configure the extra gas divemenu_set_gas2b: - bsf is_bailout ;=1: CC mode, but bailout active! + bsf is_bailout ;=1: CC mode, but bailout active! + bsf store_bailout_event + bsf event_occured ; set global event flag clrf lo ; clear Setpoint, DISP_const_ppO2_value now displayes "Bail" movff lo,char_I_const_ppO2