diff code_part1/OSTC_code_asm_part1/sleepmode.asm @ 703:39e02673db4c

some cleanup
author heinrichsweikamp
date Sun, 17 Mar 2013 13:33:17 +0100
parents 6e456a6398e0
children 8c293e76a517
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/sleepmode.asm	Sat Mar 16 13:56:26 2013 +0100
+++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm	Sun Mar 17 13:33:17 2013 +0100
@@ -186,6 +186,8 @@
 	nop
 	sleep								; Wait at least 35ms (every 16.5ms Timer1 wakeup)
 	call		get_pressure_value		; State2: Get pressure (51us)
+	clrf		temperature_avg+0
+	clrf		temperature_avg+1
 	clrf		amb_pressure_avg+0
 	clrf		amb_pressure_avg+1			; clear for sleep routine
 	call		calculate_compensation		; calculate temperature compensated pressure (233us)