Explorar o código

修复I2C驱动一个粗心BUG

I2C2_BUS_CONFIG改为I2C3_BUS_CONFIG
e190 %!s(int64=7) %!d(string=hai) anos
pai
achega
3af4e3b404
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c

+ 1 - 1
bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c

@@ -32,7 +32,7 @@ static const struct stm32_soft_i2c_config soft_i2c_config[] =
     I2C2_BUS_CONFIG,
     I2C2_BUS_CONFIG,
 #endif
 #endif
 #ifdef BSP_USING_I2C3
 #ifdef BSP_USING_I2C3
-    I2C2_BUS_CONFIG,
+    I2C3_BUS_CONFIG,
 #endif
 #endif
 };
 };