diff src/customview.asm @ 189:e79bc535ef9e

ignore un-calibrated sensors even if they become valid
author heinrichsweikamp
date Wed, 29 Oct 2014 12:53:01 +0100
parents ebc28381f17d
children efe70488a04b
line wrap: on
line diff
--- a/src/customview.asm	Mon Oct 27 11:28:48 2014 +0100
+++ b/src/customview.asm	Wed Oct 29 12:53:01 2014 +0100
@@ -257,7 +257,8 @@
 menuview_mask2:
     movlw   color_yellow
     call	TFT_set_color
-    WIN_SMALL_INVERT    divemode_simtext_column,divemode_simtext_row
+    bsf     win_invert                  ; Set invert flag
+    WIN_SMALL   divemode_simtext_column,divemode_simtext_row
 	movff	menupos2,WREG                   ; Menupos2 holds number of menu option to show
 	dcfsnz	WREG,F
 	bra		menuview_view_gaschange         ; If a better gas is indicated
@@ -275,7 +276,7 @@
 	bra		menuview_view6
 menuview_exit:
     call	TFT_standard_color
-    WIN_INVERT  .0
+    bcf     win_invert              ; Reset invert flag
 	return                                  ; Menupos2 = 0, Show nothing