# HG changeset patch
# User heinrichsweikamp
# Date 1434959913 -7200
# Node ID 1a64088b49d361a377b9c2521f4da6a53171e304
# Parent  fe0fbdc31abe02665df978c0bfdfb1663f49c004
Fix minor layout bugs in surface mode (CNS and GF display)

diff -r fe0fbdc31abe -r 1a64088b49d3 code_part1/OSTC_code_asm_part1/changelog.txt
--- a/code_part1/OSTC_code_asm_part1/changelog.txt	Thu Jun 18 18:06:41 2015 +0200
+++ b/code_part1/OSTC_code_asm_part1/changelog.txt	Mon Jun 22 09:58:33 2015 +0200
@@ -1,7 +1,7 @@
 New in 3.04:
 Beta Release
 BUGFIX: Fix licence in German
-BUGFIX: Fix minor layout bug in surface mode
+BUGFIX: Fix minor layout bugs in surface mode
 NEW: Auto Setpoint switch function (CC Modes)
 
 New in 3.03:
diff -r fe0fbdc31abe -r 1a64088b49d3 code_part1/OSTC_code_asm_part1/outputs.asm
--- a/code_part1/OSTC_code_asm_part1/outputs.asm	Thu Jun 18 18:06:41 2015 +0200
+++ b/code_part1/OSTC_code_asm_part1/outputs.asm	Mon Jun 22 09:58:33 2015 +0200
@@ -4221,7 +4221,10 @@
 	bsf		leftbind
 	output_8
 	bcf		leftbind
-	STRCAT_PRINT "% "
+	STRCAT  "% "
+    movlw   .0
+    movff   WREG,letter+.8          ; Limit to 8 chars
+    STRCAT_PRINT  ""
 	return
 
 ;-----------------------------------------------------------------------------
@@ -4243,7 +4246,10 @@
         STRCPY  TXT_GF3
         movff   char_O_gradient_factor,lo		; gradient factor
         output_8
-        STRCAT_PRINT  "%  "
+        STRCAT  "%  "
+        movlw   .0
+        movff   WREG,letter+.8          ; Limit to 8 chars
+        STRCAT_PRINT  ""
         goto    DISP_standard_color
 
 ;-----------------------------------------------------------------------------