Remove spurious I2C clock frequency resets.

This commit is contained in:
px4dev
2012-08-24 08:18:18 -07:00
parent d12c09cc86
commit d55dd67d77
2 changed files with 7 additions and 8 deletions
-2
View File
@@ -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);