Mercurial > public > hwos_code
diff 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 |
line wrap: on
line diff
--- a/src/divemenu_tree.asm Mon Apr 28 11:33:00 2014 +0200 +++ b/src/divemenu_tree.asm Mon Apr 28 16:26:31 2014 +0200 @@ -93,6 +93,13 @@ movff PLUSW1,char_I_const_ppO2; Setup fixed Setpoint bsf setpoint_changed ; Set flag (For profile) + ; Reconfigure last diluent + extern setup_dil_registers + bcf is_bailout ; =1: Bailout + movff active_diluent,WREG ; As a backup when switching back from Bailout to CCR + decf WREG ; 0-4 + call setup_dil_registers ; With WREG=Gas 0-4 + clrf WREG ; Switch to fixed SP movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor clrf WREG