changeset 589:8a7d2d8bcd33

limit string length to 4 digits/chars in average depth
author heinrichsweikamp
date Sat, 10 Mar 2018 15:44:58 +0100
parents bf0c76e9b01b
children b39a759a0e88
files src/tft_outputs.asm
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/tft_outputs.asm	Sat Mar 10 15:39:33 2018 +0100
+++ b/src/tft_outputs.asm	Sat Mar 10 15:44:58 2018 +0100
@@ -1238,6 +1238,8 @@
 	WIN_MEDIUM dm_custom_avr_stop_column1,dm_custom_avr_stop_row
 	bsf		ignore_digit5				; no cm
 	output_16dp .3						; yxz.a
+	clrf	WREG
+	movff	WREG,buffer+.4					; limit string length to 4 digits/chars
 	STRCAT_PRINT " "
 	; Stopped average depth
 	movff	avg_rel_pressure+0,lo