fix shall not be used before scheduler start

This commit is contained in:
chinky 2022-02-06 23:16:57 +08:00
parent a0fadd4e5a
commit a11abc823a
2 changed files with 3 additions and 3 deletions

View File

@ -208,10 +208,10 @@ int rt_hw_i2c_init(void)
RT_ASSERT(result == RT_EOK);
stm32_i2c_bus_unlock(&soft_i2c_config[i]);
LOG_D("software simulation %s init done, pin scl: %d, pin sda %d",
// LOG_D("software simulation %s init done, pin scl: %d, pin sda %d",
soft_i2c_config[i].bus_name,
soft_i2c_config[i].scl,
soft_i2c_config[i].sda);
soft_i2c_config[i].sda;
}
return RT_EOK;

View File

@ -30,7 +30,7 @@ rt_err_t rt_i2c_bus_device_register(struct rt_i2c_bus_device *bus,
res = rt_i2c_bus_device_device_init(bus, bus_name);
LOG_I("I2C bus [%s] registered", bus_name);
// LOG_I("I2C bus [%s] registered", bus_name);
return res;
}