Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 780:de7fa2316913
add simple gas change countdown
author | heinrichsweikamp |
---|---|
date | Mon, 26 May 2014 23:15:59 +0200 |
parents | 65822fa08333 |
children | 9eba1eb8ca38 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm Mon May 26 20:17:25 2014 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm Mon May 26 23:15:59 2014 +0200 @@ -743,6 +743,8 @@ bsf stored_gas_changed ; set event flag bsf event_occured ; set global event flag bsf decoplan_invalid ; The decoplan needs to updated + btfsc better_gas_available ; If a gas change was planned... + bsf gaschange_cnt_active ; Show the countdown clrf WREG movff WREG,char_O_deco_status ; Restart decoplan computation mH bra timeout_divemenu2 ; quit menu! @@ -785,6 +787,8 @@ movff EEDATA, char_I_N2_ratio ; = N2! bsf stored_gas_changed ; set event flag bsf event_occured ; set global event flag + btfsc better_gas_available ; If a gas change was planned... + bsf gaschange_cnt_active ; Show the countdown bsf decoplan_invalid ; The decoplan needs to updated clrf WREG movff WREG,char_O_deco_status ; Restart decoplan computation mH