MPL 2.0 error with MPU6050A2

By mauri_kangas , 1 September 2011

In the function mpu_set_slave_mpu60xx the parameter bits_slave_delay is used for the mldl_cfg->inv_mpu_state->i2c_slaves_enabled.
But only if CONFIG_MPU_SENSORS_MPU6050B1 is used the bits_slave_delay will be set with the correct values.
If CONFIG_MPU_SENSORS_MPU6050A2 is used than bits_slave_delay is always zero and no slave will be activated.
Function exit always here:

	/* return if this slave has already been set */
if ((slave_address &&
((mldl_cfg->inv_mpu_state->i2c_slaves_enabled & bits_slave_delay)
== bits_slave_delay)) ||
(!slave_address &&
(mldl_cfg->inv_mpu_state->i2c_slaves_enabled & bits_slave_delay) ==
0))
return 0;
Please correct
phpbb Topic ID
13461