diff code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 663:64194a3c8d5b

Restart building decoplan after gas change
author heinrichsweikamp
date Mon, 12 Nov 2012 20:53:58 +0100
parents e6ac142e82b0
children 259e4c1bf3c2
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Sun Nov 11 14:19:00 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Mon Nov 12 20:53:58 2012 +0100
@@ -584,6 +584,8 @@
 	movff	EEDATA, char_I_N2_ratio		; = N2!
 	bsf		manual_gas_changed			; set event flag
 	bsf		event_occured				; set global event flag
+    clrf    WREG
+    movff   WREG,char_O_deco_status     ; Restart decoplan computation mH
     bsf		is_bailout					;=1: CC mode, but bailout active!		
 	clrf	lo							; clear Setpoint, PLED_const_ppO2_value now displayes "Bail"
 	movff	lo,char_I_const_ppO2
@@ -698,6 +700,8 @@
 	bcf		display_set_setpoint		; Clear Display Flag
 	bsf		stored_gas_changed			; set event flag
 	bsf		event_occured				; set global event flag
+    clrf    WREG
+    movff   WREG,char_O_deco_status     ; Restart decoplan computation mH
 	bra		timeout_divemenu2			; quit menu!
 
 divemenu_set_gas2a:
@@ -736,6 +740,8 @@
 	movff	EEDATA, char_I_N2_ratio		; = N2!
 	bsf		stored_gas_changed			; set event flag
 	bsf		event_occured				; set global event flag
+    clrf    WREG
+    movff   WREG,char_O_deco_status     ; Restart decoplan computation mH
 
     movff   menupos,char_I_current_gas  ; Inform deco code too.
 	bra		timeout_divemenu2			; quit menu!