diff src/tft_outputs.asm @ 31:53a09c1b7410

BUGFIX: alternating brightness at very low ambient light
author heinrichsweikamp
date Sun, 21 Jul 2013 18:04:29 +0200
parents 50c3e2c7ba7a
children 64976f1e0a1c
line wrap: on
line diff
--- a/src/tft_outputs.asm	Sun Jul 21 14:11:47 2013 +0200
+++ b/src/tft_outputs.asm	Sun Jul 21 18:04:29 2013 +0200
@@ -917,9 +917,13 @@
 
 	global	TFT_update_raw_data
 TFT_update_raw_data:
+    call	TFT_standard_color
 	WIN_TINY	.0,.0
 	STRCPY  "pres:"
     SAFE_2BYTE_COPY amb_pressure, lo
+    movlw   .5  ;>1280mbar
+    cpfslt  hi
+    call	TFT_warnings_color
 	bsf		leftbind
 	output_16
 	STRCAT_PRINT "mbar "
@@ -932,6 +936,7 @@
 	output_16dp	d'2'					; temperature
 	STRCAT_PRINT "°C "
 
+    call	TFT_standard_color
 	call	get_battery_voltage			; get battery voltage
 	WIN_TINY	.0,.18
 	STRCPY  "AN06:"