mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 05:53:34 +08:00
Remove spurious I2C clock frequency resets.
This commit is contained in:
@@ -84,8 +84,6 @@ int i2ccmd_bus(FAR struct i2ctool_s *i2ctool, int argc, char **argv)
|
||||
for (i = CONFIG_I2CTOOL_MINBUS; i <= CONFIG_I2CTOOL_MAXBUS; i++)
|
||||
{
|
||||
dev = up_i2cinitialize(i);
|
||||
// set the bus speed again to a reasonable number of 400 KHz
|
||||
I2C_SETFREQUENCY(_dev, 400000);
|
||||
if (dev)
|
||||
{
|
||||
i2ctool_printf(i2ctool, "Bus %d: YES\n", i);
|
||||
|
||||
Reference in New Issue
Block a user