diff src/divemode.asm @ 102:37275e0fa7f5

NEW: Show End-of-Dive time together with clock during deco
author heinrichsweikamp
date Wed, 07 May 2014 14:57:58 +0200
parents 87cc1adfe4da
children 223579e905c3
line wrap: on
line diff
--- a/src/divemode.asm	Sun May 04 21:23:09 2014 +0200
+++ b/src/divemode.asm	Wed May 07 14:57:58 2014 +0200
@@ -1199,12 +1199,18 @@
 	movwf	divisor_tank
 
 	btfss	FLAG_apnoe_mode				; In Apnoe mode?
-	bra		divemode1
+	bra		divemode_boot1
 ; Overwrite some parameters in Apnoe mode....
 	movlw	samplingrate_apnoe
 	movwf	samplesecs_value			; to avoid EEPROM access in the ISR
+divemode_boot1:
+    btfsc   FLAG_ccr_mode               ; =1: CCR mode (Fixed ppO2 or Sensor) active
+    bra     divemode_boot2
+    ; in OC Mode, disable ppO2 logging
+    movlw   .0
+    movwf   divisor_ppo2_sensors
+divemode_boot2:
 
-divemode1:
 	bcf		LEDg
 	bcf		LEDr
 	bcf		realdive