make it compile
[protos/imu.git] / mpu6050.c
index fe53992..4dda84b 100644 (file)
--- a/mpu6050.c
+++ b/mpu6050.c
@@ -1,10 +1,11 @@
 #include <stdio.h>
 #include <string.h>
 
-#include <scheduler.h>
 #include <timer.h>
 
 #include <aversive/wait.h>
+#include <aversive/pgmspace.h>
+
 #include <uart.h>
 #include <i2c.h>
 
@@ -157,7 +158,7 @@ void mpu6050_compute_drift(void)
        s_gx = s_gy = s_gz = 0;
 
        for (i = 0; i < 0x100; i ++) {
-               mpu6050_read_gyro_raw(&g_values);
+               mpu6050_read_gyro_raw(g_values);
                s_gx += g_values[0];
                s_gy += g_values[1];
                s_gz += g_values[2];