diff src/tft_outputs.asm @ 94:f2201aa374db

BUGFIX: compass calibration does now timeout automatically after 60s BUGFIX: decoplan re-calculation in bailout case
author heinrichsweikamp
date Tue, 22 Apr 2014 12:59:14 +0200
parents 3274e87fd027
children a4bff632e97b
line wrap: on
line diff
--- a/src/tft_outputs.asm	Thu Apr 17 10:28:04 2014 +0200
+++ b/src/tft_outputs.asm	Tue Apr 22 12:59:14 2014 +0200
@@ -1140,12 +1140,28 @@
 	STRCAT_PRINT "  "
     return
 
+    global  TFT_show_timeout_testmode
+TFT_show_timeout_testmode:              ; With timeout in WREG...
+    movwf   hi
+    WIN_TINY	.20,.68
+    STRCPY  "T:"
+    movf    timeout_counter2,W          ; current timeout
+    subwf   hi,W                        ; subtract from timeout value
+    addlw   .1                          ; +1
+    movwf   lo
+    bsf     leftbind
+    output_8                            ; Display timeout
+    bcf     leftbind
+    STRCAT_PRINT "s "
+    return
+
+
     global  TFT_compass_show_gain
 TFT_compass_show_gain:       ; Show the current compass gain
     movff   opt_compass_gain,lo    ; 0-7 (230LSB/Gauss to 1370LSB/Gaus)
     tstfsz  lo
     return                         ; Do not show unless gain=0
-	WIN_TINY	.20,.68
+	WIN_TINY	.20,.86
     STRCPY_TEXT  tCompassGain
     movff   opt_compass_gain,lo    ; 0-7 (230LSB/Gauss to 1370LSB/Gaus)
     bsf     leftbind