Mercurial > public > hwos_code
diff src/divemode.asm @ 527:015b7fdd90a7
BUGFIX: O2 as diluent in CCR caused wrong calculations (Deco, EAD, END) in less then 6m depth
author | heinrichsweikamp |
---|---|
date | Sat, 05 Aug 2017 17:36:58 +0200 |
parents | 0d1cda9f2d43 |
children | d36f9fca10ae |
line wrap: on
line diff
--- a/src/divemode.asm Sat Aug 05 16:50:28 2017 +0200 +++ b/src/divemode.asm Sat Aug 05 17:36:58 2017 +0200 @@ -1476,10 +1476,10 @@ bsf voting_logic_sensor3 call divemode_setup_sensor_values ; setup sensor values - ; Setup first SP for Fixed or Auto mode - movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP - sublw .1 ; opt_ccr_mode = 1 (Sensor)? - bnz dive_boot_cc2 ; No, Skip + ; Setup first SP for Fixed or Auto mode (Skipped here, because value is overwritten in sensor mode immediately anyway) +; movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP +; sublw .1 ; opt_ccr_mode = 1 (Sensor)? +; bnz dive_boot_cc2 ; No, Skip movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; No, setup fixed Setpoint (Always start with SP1) movff char_I_const_ppO2,WREG dive_boot_cc2: