comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 665:259e4c1bf3c2

grey-out TTS and ceiling after gas change (until new plan is ready)
author heinrichsweikamp
date Wed, 14 Nov 2012 12:39:39 +0100
parents 64194a3c8d5b
children 3282581fe178
comparison
equal deleted inserted replaced
664:9c13bf8a3033 665:259e4c1bf3c2
582 subfwb wait_temp,W ; minus He 582 subfwb wait_temp,W ; minus He
583 subfwb EEDATA,F ; minus O2 583 subfwb EEDATA,F ; minus O2
584 movff EEDATA, char_I_N2_ratio ; = N2! 584 movff EEDATA, char_I_N2_ratio ; = N2!
585 bsf manual_gas_changed ; set event flag 585 bsf manual_gas_changed ; set event flag
586 bsf event_occured ; set global event flag 586 bsf event_occured ; set global event flag
587 bsf decoplan_invalid ; The decoplan needs to updated
587 clrf WREG 588 clrf WREG
588 movff WREG,char_O_deco_status ; Restart decoplan computation mH 589 movff WREG,char_O_deco_status ; Restart decoplan computation mH
589 bsf is_bailout ;=1: CC mode, but bailout active! 590 bsf is_bailout ;=1: CC mode, but bailout active!
590 clrf lo ; clear Setpoint, PLED_const_ppO2_value now displayes "Bail" 591 clrf lo ; clear Setpoint, PLED_const_ppO2_value now displayes "Bail"
591 movff lo,char_I_const_ppO2 592 movff lo,char_I_const_ppO2
698 699
699 divemenu_set_gas1a: 700 divemenu_set_gas1a:
700 bcf display_set_setpoint ; Clear Display Flag 701 bcf display_set_setpoint ; Clear Display Flag
701 bsf stored_gas_changed ; set event flag 702 bsf stored_gas_changed ; set event flag
702 bsf event_occured ; set global event flag 703 bsf event_occured ; set global event flag
704 bsf decoplan_invalid ; The decoplan needs to updated
703 clrf WREG 705 clrf WREG
704 movff WREG,char_O_deco_status ; Restart decoplan computation mH 706 movff WREG,char_O_deco_status ; Restart decoplan computation mH
705 bra timeout_divemenu2 ; quit menu! 707 bra timeout_divemenu2 ; quit menu!
706 708
707 divemenu_set_gas2a: 709 divemenu_set_gas2a:
738 subfwb wait_temp,W ; minus He 740 subfwb wait_temp,W ; minus He
739 subfwb EEDATA,F ; minus O2 741 subfwb EEDATA,F ; minus O2
740 movff EEDATA, char_I_N2_ratio ; = N2! 742 movff EEDATA, char_I_N2_ratio ; = N2!
741 bsf stored_gas_changed ; set event flag 743 bsf stored_gas_changed ; set event flag
742 bsf event_occured ; set global event flag 744 bsf event_occured ; set global event flag
745 bsf decoplan_invalid ; The decoplan needs to updated
743 clrf WREG 746 clrf WREG
744 movff WREG,char_O_deco_status ; Restart decoplan computation mH 747 movff WREG,char_O_deco_status ; Restart decoplan computation mH
745 748
746 movff menupos,char_I_current_gas ; Inform deco code too. 749 movff menupos,char_I_current_gas ; Inform deco code too.
747 bra timeout_divemenu2 ; quit menu! 750 bra timeout_divemenu2 ; quit menu!