mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 06:43:33 +08:00
bmm150:Restored lost internal i2C
This commit is contained in:
committed by
Daniel Agar
parent
005db51d7f
commit
fd31091fdb
@@ -86,8 +86,12 @@ void start(bool external_bus, enum Rotation rotation)
|
||||
#endif
|
||||
|
||||
} else {
|
||||
#if defined(PX4_I2C_BUS_ONBOARD)
|
||||
*g_dev_ptr = new BMM150(PX4_I2C_BUS_ONBOARD, path, rotation);
|
||||
#else
|
||||
PX4_ERR("Internal I2C not available");
|
||||
exit(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (*g_dev_ptr == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user