Mercurial > public > hwos_code
comparison src/divemenu_tree.asm @ 97:53a99a2dc6a1
CHANGE: Always compute bailout plan based on all active gases
CHANGE: Re-select last diluent when returning from bailout to OC
author | heinrichsweikamp |
---|---|
date | Mon, 28 Apr 2014 16:26:31 +0200 |
parents | 2825f1d2262f |
children | 87cc1adfe4da |
comparison
equal
deleted
inserted
replaced
96:a4bff632e97b | 97:53a99a2dc6a1 |
---|---|
91 decf menupos,W ; 1-5 -> 0-4 | 91 decf menupos,W ; 1-5 -> 0-4 |
92 lfsr FSR1,char_I_setpoint_cbar | 92 lfsr FSR1,char_I_setpoint_cbar |
93 movff PLUSW1,char_I_const_ppO2; Setup fixed Setpoint | 93 movff PLUSW1,char_I_const_ppO2; Setup fixed Setpoint |
94 bsf setpoint_changed ; Set flag (For profile) | 94 bsf setpoint_changed ; Set flag (For profile) |
95 | 95 |
96 ; Reconfigure last diluent | |
97 extern setup_dil_registers | |
98 bcf is_bailout ; =1: Bailout | |
99 movff active_diluent,WREG ; As a backup when switching back from Bailout to CCR | |
100 decf WREG ; 0-4 | |
101 call setup_dil_registers ; With WREG=Gas 0-4 | |
102 | |
96 clrf WREG ; Switch to fixed SP | 103 clrf WREG ; Switch to fixed SP |
97 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor | 104 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor |
98 clrf WREG | 105 clrf WREG |
99 movff WREG,char_O_deco_status ; Restart decoplan computation | 106 movff WREG,char_O_deco_status ; Restart decoplan computation |
100 | 107 |