diff code_part1/OSTC_code_asm_part1/sleepmode.asm @ 714:b7f7184d800d

banksafe sensor init
author heinrichsweikamp
date Thu, 16 May 2013 14:16:09 +0200
parents 8c293e76a517
children fac7710ab84e
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/sleepmode.asm	Thu May 16 13:57:32 2013 +0200
+++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm	Thu May 16 14:16:09 2013 +0200
@@ -194,8 +194,8 @@
 	return
 
 fatal_error_sleep:
-	bsf		no_sensor_int               ; Disable sensor interrupt
 	call	get_calibration_data    	; Get calibration data from pressure sensor
+    banksel	flag5
 	bcf		no_sensor_int               ; Enable sensor interrupt
 	WAITMS	d'250'
 	WAITMS	d'250'