1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Wrong I2C bus used for the onboard magnetometer

This commit is contained in:
Werner Backes 2014-09-14 17:40:28 +02:00 committed by Fredrik Larsson
parent 25c718aaa8
commit 2f0c43c6e5

View File

@ -946,7 +946,7 @@ void PIOS_Board_Init(void)
#endif
#if defined(PIOS_INCLUDE_HMC5X83)
onboard_mag = PIOS_HMC5x83_Init(&pios_hmc5x83_cfg, pios_i2c_pressure_adapter_id, 0);
onboard_mag = PIOS_HMC5x83_Init(&pios_hmc5x83_cfg, pios_i2c_mag_adapter_id, 0);
#endif
#if defined(PIOS_INCLUDE_MS5611)