Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode.asm @ 3:3cf8af30b36e
v1.51 beta
author | heinrichsweikamp |
---|---|
date | Thu, 04 Feb 2010 14:56:12 +0100 |
parents | d11ef8dc4b2c |
children | 2b5c52ae3923 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Wed Jan 20 15:17:37 2010 +0100 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Thu Feb 04 14:56:12 2010 +0100 @@ -90,6 +90,9 @@ diveloop_loop1c: call PLED_const_ppO2_value ; display const ppO2 setting in [Bar] call calc_deko_divemode ; calculate decompression and display result (any two seconds) + btfsc is_bailout ; Are we in Bailout mode? + call check_ppO2_bail ; Yes, display ppO2 (If required) + bra diveloop_loop1x ; Common Tasks ; Common Tasks for all modes @@ -800,6 +803,7 @@ btfsc FLAG_const_ppO2_mode ; ignore in ppO2 mode.... return +check_ppO2_bail: ; In CC mode but bailout active! movff amb_pressure+0,xA+0 movff amb_pressure+1,xA+1 movlw d'10' @@ -1429,7 +1433,8 @@ bcf depth_greater_100m ; clear flag setf last_diluent ; to be displayed after first calculation (range: 0 to 100 [%]) clrf char_last_pointer - bcf dekostop_active + bcf dekostop_active + bcf is_bailout ;=1: CC mode, but bailout active! call get_free_EEPROM_location ; get last position in external EEPROM, may be up to 2 secs! movff last_surfpressure_30min+1,int_I_pres_surface+1 ; HIGH copy surfacepressure to deco routine