diff src/tft_outputs.asm @ 248:afe73e1a0181

support hardware_flag for all possible hardware combinations
author heinrichsweikamp
date Mon, 16 Mar 2015 15:58:51 +0100
parents 5968af2839a4
children 94bf757690cf
line wrap: on
line diff
--- a/src/tft_outputs.asm	Fri Mar 13 10:49:43 2015 +0100
+++ b/src/tft_outputs.asm	Mon Mar 16 15:58:51 2015 +0100
@@ -1504,11 +1504,11 @@
     rrcf    hi,F
     rrcf    lo,F   ; /2  -> heading 0-179 in lo
 
-; Debug
-    WIN_TINY    .0,.71
-    output_8
-    STRCAT_PRINT " "
-; Debug
+;; Debug
+;    WIN_TINY    .0,.71
+;    output_8
+;    STRCAT_PRINT " "
+;; Debug
 
     ; With 60° shown, left border is heading-30° or lo - 15
     movlw   .15
@@ -1517,11 +1517,11 @@
     addlw   .180            ; Yes, adjust value
     movwf   lo              ; lo has now left border of graphic in 0-179
 
-; Debug
-    WIN_TINY    .0,.85
-    output_8
-    STRCAT_PRINT " "
-; Debug
+;; Debug
+;    WIN_TINY    .0,.85
+;    output_8
+;    STRCAT_PRINT " "
+;; Debug
 
 ; Draw marks (left border of graphic is in lo)
 ;    WIN_BOX_BLACK   dive_compass_graph_row+.1,dive_compass_graph_row+dive_compass_graph_height-.1,dive_compass_graph_left,dive_compass_graph_right-.2
@@ -1754,7 +1754,7 @@
     WIN_TINY   .80,.0
 	call	TFT_standard_color
 	lfsr	FSR2,buffer
-    movff   hud_status_byte,lo
+    movff   hardware_flag,lo
     output_8
 	STRCAT_PRINT ""
     return