diff code_part1/OSTC_code_asm_part1/sleepmode.asm @ 125:2907b42c195b

Altimeter: - use H = 19902 log10(P0/P) - Interface to select sea level mbars. - Average over 32 values, using 1/16 of mbar. - Display in customview area. - Fix display ****m when not yet computed - Fix reset when exiting sleep mode - Fix : edit menu in 1/4 of mbar. - Fix use CF#49 to enable/disable altimeter, also in altimeter menu. - Fix visible in Menu 2
author JeanDo
date Wed, 29 Dec 2010 01:41:13 +0100
parents 14a074e1a375
children 17de42ab02b6
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/sleepmode.asm	Sat Jan 01 01:57:50 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm	Wed Dec 29 01:41:13 2010 +0100
@@ -166,7 +166,11 @@
 	bcf		switch_left
 	bcf		T0CON,TMR0ON				; Stop Timer 0
 	bcf		sleepmode				; wake up!
-	bsf		show_startup_screen		; 
+	bsf		show_startup_screen		;
+
+    ; Reset altimeter, so next averaging starts right over...
+	call    altimeter_reset
+
 	return
 	
 pressuretest_sleep_fast:				; Get pressure without averaging (Faster to save some power in sleep mode)