Mercurial > public > hwos_code
comparison src/start.asm @ 545:7e6df19264b6
BUGFIX: Simulator in CC mode
BUGFIX: Changing the dive mode and starting the simulator (without leaving the menu first) caused false calculations in the simulator
BUGFIX: PSCR Mode "OC Gases" showed Diluents, not OC gases
BUGFIX: CCR Mode ("First Diluent") was chosen based on OC "First Gas" number
author | heinrichsweikamp |
---|---|
date | Wed, 06 Sep 2017 21:26:18 +0200 |
parents | ad8acade5567 |
children | b7eb98dbd800 |
comparison
equal
deleted
inserted
replaced
544:64a45f203144 | 545:7e6df19264b6 |
---|---|
384 TSTOSS opt_sampling_rate ; =1: 10s, =0: 2s | 384 TSTOSS opt_sampling_rate ; =1: 10s, =0: 2s |
385 bra restart_set_modes_and_flags1 | 385 bra restart_set_modes_and_flags1 |
386 movlw .10 | 386 movlw .10 |
387 movwf samplingrate | 387 movwf samplingrate |
388 restart_set_modes_and_flags1: | 388 restart_set_modes_and_flags1: |
389 bcf twosecupdate ; to have divemode routines in sync | |
390 movlw .3 | |
391 movff WREG,char_O_deco_status ; will init the deco_calc_hauptroutine on first invocation | |
392 bcf FLAG_apnoe_mode | |
393 bcf FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active | |
394 bcf FLAG_gauge_mode ; =1: In Gauge mode | |
395 bcf FLAG_pscr_mode | |
396 call disable_ir_s8 ; IR off | |
397 | |
389 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR | 398 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR |
390 | 399 |
391 bcf FLAG_apnoe_mode | |
392 bcf FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active | |
393 bcf FLAG_gauge_mode ; =1: In Gauge mode | |
394 bcf FLAG_pscr_mode | |
395 call disable_ir_s8 ; IR off | |
396 | |
397 tstfsz lo | 400 tstfsz lo |
398 bra restart_set_modes_and_flags2 | 401 bra restart_set_modes_and_flags2 |
399 ; OC Mode | 402 ; OC Mode |
400 return | 403 return |
401 | 404 |