Mercurial > public > hwos_code
diff src/start.asm @ 562:8b7ea27ea1fa
seperate desat and sat multipliers for GF and Non-GF modes. Set to 100/100 as default in GF mode
author | heinrichsweikamp |
---|---|
date | Sat, 03 Feb 2018 15:17:01 +0100 |
parents | 9c54849b8d3b |
children | b455b31ce022 |
line wrap: on
line diff
--- a/src/start.asm Sat Feb 03 13:36:02 2018 +0100 +++ b/src/start.asm Sat Feb 03 15:17:01 2018 +0100 @@ -393,15 +393,24 @@ movwf samplingrate restart_set_modes_and_flags1: bcf twosecupdate ; to have divemode routines in sync - + bcf FLAG_apnoe_mode bcf FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active bcf FLAG_gauge_mode ; =1: In Gauge mode bcf FLAG_pscr_mode call disable_ir_s8 ; IR off + ; Setup char_I_saturation_multiplier and char_I_desaturation_multiplier + movff opt_sat_multiplier_gf,char_I_saturation_multiplier + movff opt_desat_multiplier_gf,char_I_desaturation_multiplier + movff char_I_deco_model,lo ; 0 = ZH-L16, 1 = ZH-L16-GF + tstfsz lo + bra restart_set_modes_and_flags1b + movff opt_sat_multiplier_non_gf,char_I_saturation_multiplier + movff opt_desat_multiplier_non_gf,char_I_desaturation_multiplier + +restart_set_modes_and_flags1b: movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR - tstfsz lo bra restart_set_modes_and_flags2 ; OC Mode