# HG changeset patch
# User heinrichsweikamp
# Date 1501773445 -7200
# Node ID 72f6cb65ca4a274a8c56d8a7034dd57dda51fbfe
# Parent  d339c9e1175d19d405d1446c6d990f14de0bce1f
BUGFIX: Do not check ppO2 for disabled gases

diff -r d339c9e1175d -r 72f6cb65ca4a src/changelog.txt
--- a/src/changelog.txt	Thu Aug 03 17:03:05 2017 +0200
+++ b/src/changelog.txt	Thu Aug 03 17:17:25 2017 +0200
@@ -3,6 +3,7 @@
 BUGFIX: Lost Diluent now possible in CCR and PSCR mode
 NEW: ppO2 blinks in sensor mode when min/max boundaries are hit
 CHANGE: Show actual GF (Not relative) in custom views in dive mode
+BUGFIX: Do not check ppO2 for disabled gases
 
 [2.18]
 - Beta Version -
diff -r d339c9e1175d -r 72f6cb65ca4a src/gaslist.asm
--- a/src/gaslist.asm	Thu Aug 03 17:03:05 2017 +0200
+++ b/src/gaslist.asm	Thu Aug 03 17:17:25 2017 +0200
@@ -211,9 +211,8 @@
         movf    PLUSW1,W
         bnz     gaslist_strcat_3
         call    TFT_disabled_color
+	bra	gaslist_strcat_4	; NEW ; No MOD-check and red color for disabled gases
 gaslist_strcat_3:
-        rcall   gaslist_strcat_gas_0
-		PUTC	" "
         ; Read switch depth
         lfsr    FSR1,char_I_dil_change-.5   ; Setup Diluents-5
         movlw   .4
@@ -227,8 +226,11 @@
         bra		gaslist_strcat_4
         call    TFT_warnings_color      ; Turn red if bigger
 gaslist_strcat_4:
-		TSTOSS	opt_units               ; 0=Meters, 1=Feets
-		bra		gaslist_strcat_3_metric
+	rcall   gaslist_strcat_gas_0
+	PUTC	" "
+
+	TSTOSS	opt_units               ; 0=Meters, 1=Feets
+	bra		gaslist_strcat_3_metric
 ;gaslist_strcat_3_imperial:
         btfsc   ccr_diluent_setup       ; =1: Setting up Diluents ("Gas6-10")
         bra     gaslist_imperial_non_travel