diff src/divemode.asm @ 99:87cc1adfe4da

show event "bailout" in the internal logbook
author heinrichsweikamp
date Fri, 02 May 2014 14:13:35 +0200
parents 24b3fd59e61f
children 37275e0fa7f5
line wrap: on
line diff
--- a/src/divemode.asm	Thu May 01 21:16:31 2014 +0200
+++ b/src/divemode.asm	Fri May 02 14:13:35 2014 +0200
@@ -757,6 +757,8 @@
     return
 
 gas_switched_common:
+    bcf     divemode_gaschange      ; Clear flag
+
     decf    menupos,W               ; 1-5 -> 0-4
     btfss   FLAG_ccr_mode           ; Choose OC Gases
     rcall   setup_gas_registers     ; With WREG=Gas 0-4
@@ -768,7 +770,6 @@
     rcall   setup_gas_registers     ; With WREG=Gas 0-4
 
     call	TFT_active_gas_divemode	; Display gas/Setpoint
-    bcf     divemode_gaschange      ; Clear flag
     clrf    WREG
     movff   WREG,char_O_deco_status ; Restart decoplan computation