diff src/tft_outputs.asm @ 589:8a7d2d8bcd33

limit string length to 4 digits/chars in average depth
author heinrichsweikamp
date Sat, 10 Mar 2018 15:44:58 +0100
parents e81cf407261a
children 08a0162d3ca1
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