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

banksafe sensor init
author heinrichsweikamp
date Thu, 16 May 2013 14:16:09 +0200
parents 8c293e76a517
children 4452837aff37
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm	Thu May 16 13:57:32 2013 +0200
+++ b/code_part1/OSTC_code_asm_part1/start.asm	Thu May 16 14:16:09 2013 +0200
@@ -43,8 +43,8 @@
 	call	RTCinit					; reset RTC
 
 ; Air pressure compensation	after reset
-	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
 	bcf		pressure_refresh
 wait_start_pressure: