comparison 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
comparison
equal deleted inserted replaced
101:8c471940d989 102:37275e0fa7f5
1197 movwf divisor_cns 1197 movwf divisor_cns
1198 movlw div_tank 1198 movlw div_tank
1199 movwf divisor_tank 1199 movwf divisor_tank
1200 1200
1201 btfss FLAG_apnoe_mode ; In Apnoe mode? 1201 btfss FLAG_apnoe_mode ; In Apnoe mode?
1202 bra divemode1 1202 bra divemode_boot1
1203 ; Overwrite some parameters in Apnoe mode.... 1203 ; Overwrite some parameters in Apnoe mode....
1204 movlw samplingrate_apnoe 1204 movlw samplingrate_apnoe
1205 movwf samplesecs_value ; to avoid EEPROM access in the ISR 1205 movwf samplesecs_value ; to avoid EEPROM access in the ISR
1206 1206 divemode_boot1:
1207 divemode1: 1207 btfsc FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active
1208 bra divemode_boot2
1209 ; in OC Mode, disable ppO2 logging
1210 movlw .0
1211 movwf divisor_ppo2_sensors
1212 divemode_boot2:
1213
1208 bcf LEDg 1214 bcf LEDg
1209 bcf LEDr 1215 bcf LEDr
1210 bcf realdive 1216 bcf realdive
1211 btfss simulatormode_active ; do not disable in simulator mode! 1217 btfss simulatormode_active ; do not disable in simulator mode!
1212 call disable_rs232 ; Disable RS232 1218 call disable_rs232 ; Disable RS232