Mercurial > public > hwos_code
comparison src/divemode.asm @ 398:1f2e35f5a5aa
BUGFIX: Make sure SP1 is always selected on start in Auto-SP mode
CHANGE: Show velocity from 5m/min or more (Ascend or descent)
Work on new speed graph
author | heinrichsweikamp |
---|---|
date | Mon, 23 Nov 2015 16:13:25 +0100 |
parents | 9175429bdeba |
children | db25f2028074 |
comparison
equal
deleted
inserted
replaced
397:56f3c7026762 | 398:1f2e35f5a5aa |
---|---|
1408 bsf voting_logic_sensor2 | 1408 bsf voting_logic_sensor2 |
1409 bsf voting_logic_sensor3 | 1409 bsf voting_logic_sensor3 |
1410 rcall divemode_setup_sensor_values ; setup sensor values | 1410 rcall divemode_setup_sensor_values ; setup sensor values |
1411 | 1411 |
1412 ; Setup first SP for Fixed or Auto mode | 1412 ; Setup first SP for Fixed or Auto mode |
1413 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor | 1413 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
1414 movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; Setup fixed Setpoint (Always start with SP1) | 1414 sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
1415 movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; No, setup fixed Setpoint (Always start with SP1) | |
1415 movff char_I_const_ppO2,WREG | 1416 movff char_I_const_ppO2,WREG |
1416 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics | 1417 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics |
1417 bsf setpoint_changed ; Set flag (For profile) | 1418 bsf setpoint_changed ; Set flag (For profile) |
1418 bcf sp2_switched ; =1: This setpoint has been autoselected already | 1419 bcf sp2_switched ; =1: This setpoint has been autoselected already |
1419 bcf sp3_switched ; =1: This setpoint has been autoselected already | 1420 bcf sp3_switched ; =1: This setpoint has been autoselected already |