]> git.gag.com Git - fw/altos/blobdiff - src/drivers/ao_mpu6000.c
altos/telelco-v3: Move USB pullup from PA9 to PA10
[fw/altos] / src / drivers / ao_mpu6000.c
index 79658c552bf2e38b7c917d287523f148df86d271..c33032af7e5dc017e363b19171a585eb62e0f76a 100644 (file)
@@ -113,7 +113,7 @@ _ao_mpu6000_sample(struct ao_mpu6000_sample *sample)
        /* byte swap */
        while (i--) {
                uint16_t        t = *d;
-               *d++ = (t >> 8) | (t << 8);
+               *d++ = (uint16_t) ((t >> 8) | (t << 8));
        }
 #endif
 }