Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
526:0d1cda9f2d43 | 527:015b7fdd90a7 |
---|---|
1474 bsf voting_logic_sensor1 | 1474 bsf voting_logic_sensor1 |
1475 bsf voting_logic_sensor2 | 1475 bsf voting_logic_sensor2 |
1476 bsf voting_logic_sensor3 | 1476 bsf voting_logic_sensor3 |
1477 call divemode_setup_sensor_values ; setup sensor values | 1477 call divemode_setup_sensor_values ; setup sensor values |
1478 | 1478 |
1479 ; Setup first SP for Fixed or Auto mode | 1479 ; Setup first SP for Fixed or Auto mode (Skipped here, because value is overwritten in sensor mode immediately anyway) |
1480 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP | 1480 ; movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
1481 sublw .1 ; opt_ccr_mode = 1 (Sensor)? | 1481 ; sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
1482 bnz dive_boot_cc2 ; No, Skip | 1482 ; bnz dive_boot_cc2 ; No, Skip |
1483 movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; No, setup fixed Setpoint (Always start with SP1) | 1483 movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; No, setup fixed Setpoint (Always start with SP1) |
1484 movff char_I_const_ppO2,WREG | 1484 movff char_I_const_ppO2,WREG |
1485 dive_boot_cc2: | 1485 dive_boot_cc2: |
1486 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics | 1486 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics |
1487 bsf setpoint_changed ; Set flag (For profile) | 1487 bsf setpoint_changed ; Set flag (For profile) |