projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: add more text to TeleLaunch manual, be less sloppy with dBm assertions
[fw/altos]
/
src
/
drivers
/
ao_mpu9250.c
diff --git
a/src/drivers/ao_mpu9250.c
b/src/drivers/ao_mpu9250.c
index 74e444a9d0950ba21a4439d19a5adcc5999a0f3c..1b31edf4611754fe1b8c8d8fe52562b161e8579e 100644
(file)
--- a/
src/drivers/ao_mpu9250.c
+++ b/
src/drivers/ao_mpu9250.c
@@
-26,8
+26,6
@@
static uint8_t ao_mpu9250_configured;
static uint8_t ao_mpu9250_configured;
-extern uint8_t ao_sensor_errors;
-
#ifndef AO_MPU9250_I2C_INDEX
#define AO_MPU9250_SPI 1
#else
#ifndef AO_MPU9250_I2C_INDEX
#define AO_MPU9250_SPI 1
#else
@@
-361,7
+359,7
@@
_ao_mpu9250_setup(void)
}
if (st_tries == ST_TRIES)
}
if (st_tries == ST_TRIES)
-
ao_sensor_errors = 1
;
+
AO_SENSOR_ERROR(AO_DATA_MPU9250)
;
/* Set up the mag sensor */
/* Set up the mag sensor */
@@
-372,7
+370,7
@@
_ao_mpu9250_setup(void)
}
if (mag_tries == MAG_TRIES)
}
if (mag_tries == MAG_TRIES)
-
ao_sensor_errors = 1
;
+
AO_SENSOR_ERROR(AO_DATA_MPU9250)
;
/* Select continuous mode 2 (100Hz), 16 bit samples */
/* Select continuous mode 2 (100Hz), 16 bit samples */