Add MPL3115 driver; It's a bit slow (takes ~1s for DataReady to be set), should take a look
This commit is contained in:
@ -215,8 +215,8 @@ int main() {
|
||||
mgos_mpu9250_set_magnetometer_speed(mpu9250, MAG_100_HZ);
|
||||
}
|
||||
*/
|
||||
if (!(baro=mgos_barometer_create_i2c(i2c, 0x60, BARO_MPL115))) {
|
||||
LOG(LL_ERROR, ("Cannot create MPL115 barometer"));
|
||||
if (!(baro=mgos_barometer_create_i2c(i2c, 0x60, BARO_MPL3115))) {
|
||||
LOG(LL_ERROR, ("Cannot create barometer"));
|
||||
} else {
|
||||
mgos_barometer_set_cache_ttl(baro, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user