diff src/sleepmode.asm @ 560:b7eb98dbd800

bump to 2.96beta (REFACTORED VERSION)
author heinrichsweikamp
date Wed, 31 Jan 2018 19:39:37 +0100
parents 69a98f3f3b84
children b455b31ce022
line wrap: on
line diff
--- a/src/sleepmode.asm	Wed Dec 27 14:34:11 2017 +0100
+++ b/src/sleepmode.asm	Wed Jan 31 19:39:37 2018 +0100
@@ -168,9 +168,11 @@
 	return
 	
 deepsleep_get_accel:
-	call    I2C_init_compass
+	call    I2C_init_compass	    ; required for compass1
+	call	I2C_init_accelerometer	    ; required for compass2
 	call    I2C_RX_accelerometer        ; read Accelerometer
-	call    I2C_sleep_compass
+	call    I2C_sleep_compass	    ; required for compass1
+	call	I2C_sleep_accelerometer	    ; required for compass2
 	movff	accel_DZ+0,WREG
 	return
 	
@@ -296,13 +298,11 @@
 	banksel 	common
 	rcall 		sleepmode_sleep			; Wait at least 35ms (every 62,5ms Timer7 wakeup)
 	rcall 		sleepmode_sleep			; Wait at least 35ms (every 62,5ms Timer7 wakeup)
-    bsf         LEDg                    ; Show some activity
 	banksel 	isr_backup              ; Back to Bank0 ISR data
 	call		get_pressure_value		; State2: Get pressure (51us)
 	call		calculate_compensation		; calculate temperature compensated pressure (27us)
 	banksel 	common
     SAFE_2BYTE_COPY amb_pressure_avg, amb_pressure	; copy for compatibility
-    bcf         LEDg
 	return
 
 sleepmode_sleep: