diff src/tft_outputs.asm @ 191:d049511b25c6

minor
author heinrichsweikamp
date Thu, 30 Oct 2014 17:45:50 +0100
parents e79bc535ef9e
children efe70488a04b
line wrap: on
line diff
--- a/src/tft_outputs.asm	Wed Oct 29 15:33:36 2014 +0100
+++ b/src/tft_outputs.asm	Thu Oct 30 17:45:50 2014 +0100
@@ -1572,14 +1572,14 @@
     return
 
 compass_heading_common:
-    extern  compass
-    extern  compass_filter
+	call	speed_normal
     rcall   TFT_get_compass
     rcall   TFT_get_compass
     rcall   TFT_get_compass
     rcall   TFT_get_compass
     rcall   TFT_get_compass
     rcall   TFT_get_compass
+    extern  compass
     call    compass                     ; Do compass corrections.
     banksel common
   
@@ -1608,9 +1608,9 @@
     return
 
 TFT_get_compass:
-	call	speed_normal
     call    I2C_RX_compass              ; Test Compass
     call    I2C_RX_accelerometer        ; Test Accelerometer
+    extern  compass_filter
     call    compass_filter              ; Filter Raw compass + accel readings.
     banksel common
     return