diff src/divemode.asm @ 516:2ef8cf6b320d

NEW: ppO2 blinks in sensor mode when min/max boundaries are hit Backup diluent change depths in dive mode boot
author heinrichsweikamp
date Thu, 03 Aug 2017 16:59:31 +0200
parents 3f6d5cf91f64
children 06e9370c6d75
line wrap: on
line diff
--- a/src/divemode.asm	Thu Aug 03 16:31:16 2017 +0200
+++ b/src/divemode.asm	Thu Aug 03 16:59:31 2017 +0200
@@ -1552,6 +1552,12 @@
     movff   opt_gas_type+3,opt_gas_type_backup+3    ; 0=Disabled, 1=First, 2=Travel, 3=Deco
     movff   opt_gas_type+4,opt_gas_type_backup+4    ; 0=Disabled, 1=First, 2=Travel, 3=Deco
     ; Also copy change depths into backup (For "lost gas" feature)
+    movff   char_I_dil_change+0,opt_dil_change_backup+0	; Gas change depths Diluents
+    movff   char_I_dil_change+1,opt_dil_change_backup+1	; Gas change depths Diluents
+    movff   char_I_dil_change+2,opt_dil_change_backup+2	; Gas change depths Diluents
+    movff   char_I_dil_change+3,opt_dil_change_backup+3	; Gas change depths Diluents
+    movff   char_I_dil_change+4,opt_dil_change_backup+4	; Gas change depths Diluents
+    ; Also copy change depths into backup (For "lost gas" feature)
     movff   opt_OC_bail_gas_change+0,opt_OC_bail_gas_change_backup+0 ; Gas change depths OC/Bailout
     movff   opt_OC_bail_gas_change+1,opt_OC_bail_gas_change_backup+1 ; Gas change depths OC/Bailout
     movff   opt_OC_bail_gas_change+2,opt_OC_bail_gas_change_backup+2 ; Gas change depths OC/Bailout