diff src/tft_outputs.asm @ 454:0ef84436df32

minor: fix some alignments for OSTC cR
author heinrichsweikamp
date Tue, 27 Sep 2016 16:03:31 +0200
parents b4f28ab23b87
children b86f86ec570e
line wrap: on
line diff
--- a/src/tft_outputs.asm	Mon Sep 19 16:32:02 2016 +0200
+++ b/src/tft_outputs.asm	Tue Sep 27 16:03:31 2016 +0200
@@ -1251,7 +1251,10 @@
     bsf     leftbind
     output_16dp  .4         ; x.xx
     bcf     leftbind
-    STRCAT_PRINT "mV  "
+    STRCAT  "mV  "
+    clrf    WREG
+    movff   WREG,buffer+.6                  ; limit string length to 6
+    STRCAT_PRINT    ""
     goto	TFT_standard_color  ; and return...
 
     global  TFT_update_ppo2_sensors         ; Update Sensor data
@@ -1398,7 +1401,10 @@
     movff   o2_mv_sensor1+0,lo      ; in 0.1mV steps
     movff   o2_mv_sensor1+1,hi      ; in 0.1mV steps
     output_16dp  .4         ; xxx.y mV
-    STRCAT_PRINT "mV "
+    STRCAT  "mV "
+    clrf    WREG
+    movff   WREG,buffer+.10                  ; limit string length to 10
+    STRCAT_PRINT    ""
     WIN_SMALL   surf_menu_sensor2_column,surf_menu_sensor2_row
     movff   o2_ppo2_sensor2,lo
     clrf    hi
@@ -1407,7 +1413,10 @@
     movff   o2_mv_sensor2+0,lo      ; in 0.1mV steps
     movff   o2_mv_sensor2+1,hi      ; in 0.1mV steps
     output_16dp  .4         ; xxx.y mV
-    STRCAT_PRINT "mV "
+    STRCAT  "mV "
+    clrf    WREG
+    movff   WREG,buffer+.10                  ; limit string length to 10
+    STRCAT_PRINT    ""
     WIN_SMALL   surf_menu_sensor3_column,surf_menu_sensor3_row
     movff   o2_ppo2_sensor3,lo
     clrf    hi
@@ -1416,7 +1425,10 @@
     movff   o2_mv_sensor3+0,lo      ; in 0.1mV steps
     movff   o2_mv_sensor3+1,hi      ; in 0.1mV steps
     output_16dp  .4         ; xxx.y mV
-    STRCAT_PRINT "mV "
+    STRCAT  "mV "
+    clrf    WREG
+    movff   WREG,buffer+.10                  ; limit string length to 10
+    STRCAT_PRINT    ""
     WIN_SMALL   surf_menu_sensor4_column,surf_menu_sensor4_row
 
     btfss   analog_o2_input