diff code_part1/OSTC_code_asm_part1/simulator.asm @ 664:9c13bf8a3033

Ignore decoplanner in gauge and apnoe mode
author heinrichsweikamp
date Wed, 14 Nov 2012 12:02:14 +0100
parents d7eeaffd8fc1
children 6e456a6398e0
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Mon Nov 12 20:53:58 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Wed Nov 14 12:02:14 2012 +0100
@@ -334,6 +334,11 @@
 ; OSTC Simulator: compute a new runtime
 ;
 simulator_calc_deco:
+    btfsc	gauge_mode                  ; In Gauge mode?
+    bra     menu_simulator              ; Yes, igonore decoplaner
+	btfsc   FLAG_apnoe_mode             ; In Apnoe mode?
+    bra     menu_simulator              ; Yes, igonore decoplaner
+
 	call	simulator_save_tissue_data  ; Stores 32 floats "pre_tissue" into bank3
 
     movff   char_I_dive_interval,WREG   ; Any interval ?