diff src/customview.asm @ 476:7c10557c248e

no sensors in surface mode if the computer has no sensor inputs
author heinrichsweikamp
date Mon, 16 Jan 2017 11:05:02 +0100
parents 4fdf6886004b
children c0ee33f1f399
line wrap: on
line diff
--- a/src/customview.asm	Fri Jan 13 13:08:17 2017 +0100
+++ b/src/customview.asm	Mon Jan 16 11:05:02 2017 +0100
@@ -394,6 +394,10 @@
     sublw   0x11        ; 2 with BLE
     btfsc   STATUS,Z
     bra		customview_toggle				; no, Call next view...
+    movf    hardware_flag,W
+    sublw   0x13        ; +
+    btfsc   STATUS,Z
+    bra		customview_toggle				; no, Call next view...
 
     bsf     dive_hud1_displayed         ; Set display flag
     bsf     dive_hud2_displayed         ; Set display flag
@@ -458,6 +462,12 @@
 	bra		customview_toggle				; yes, Call next view...
 	btfss	FLAG_ccr_mode					; In CC mode?
 	bra		customview_toggle				; no, Call next view...
+    
+    movf    hardware_flag,W
+    sublw   0x13        ; +
+    btfsc   STATUS,Z
+    bra		customview_toggle				; no, Call next view...
+
     movff   opt_ccr_mode,WREG               ; =0: Fixed SP, =1: Sensor,  =2: Auto SP
     sublw   .1                              ; opt_ccr_mode = 1 (Sensor)?
     bnz     customview_toggle				; no, Call next view...