From a11abc823aef7ff1fba110897995a3c2e82965c0 Mon Sep 17 00:00:00 2001 From: chinky Date: Sun, 6 Feb 2022 23:16:57 +0800 Subject: [PATCH] fix shall not be used before scheduler start --- bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c | 4 ++-- components/drivers/i2c/i2c_core.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c b/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c index 871686650b..c21cdec673 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c @@ -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; diff --git a/components/drivers/i2c/i2c_core.c b/components/drivers/i2c/i2c_core.c index c629765f65..12b65a063c 100644 --- a/components/drivers/i2c/i2c_core.c +++ b/components/drivers/i2c/i2c_core.c @@ -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; }