diff src/tft_outputs.asm @ 465:025a0ce21f8b

BUGFIX: Minor layout corrections in imperial units dive screen
author heinrichsweikamp
date Fri, 18 Nov 2016 10:49:32 +0100
parents b86f86ec570e
children 7f4c3b2e6bb7
line wrap: on
line diff
--- a/src/tft_outputs.asm	Wed Nov 02 15:46:22 2016 +0100
+++ b/src/tft_outputs.asm	Fri Nov 18 10:49:32 2016 +0100
@@ -1151,7 +1151,10 @@
     WIN_MEDIUM  dm_custom_avr_stop_column3,dm_custom_avr_stop_row
     output_16                       ; yxz
     bcf     leftbind
-    STRCAT_PRINT " "
+    PUTC    " "
+    clrf    WREG
+    movff   WREG,buffer+.3                  ; limit string length to 3
+    STRCAT_PRINT ""
     return
 
 TFT_update_avr_stopwatch_metric:
@@ -1595,13 +1598,16 @@
 
 	global	TFT_debug_output
 TFT_debug_output:
-    return
     WIN_TINY   .80,.0
 	call	TFT_standard_color
 	lfsr	FSR2,buffer
-    movff   hardware_flag,lo
+    movff   analog_sw1,lo
     output_8
-	STRCAT_PRINT ""
+    PUTC    ","
+    movff   analog_sw2,lo
+    output_8
+
+    STRCAT_PRINT ""
     return
 
     global  TFT_divetimeout                     ; Show timeout counter