We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76c3720 commit fd3fd55Copy full SHA for fd3fd55
targets/TARGET_STM/TARGET_STM32WB/i2c_device.c
@@ -46,7 +46,7 @@ uint32_t i2c_get_pclk(I2CName i2c)
46
}
47
48
#if defined I2C2_BASE
49
- if (i2c == I2C_2) {
+ else if (i2c == I2C_2) {
50
clocksource = __HAL_RCC_GET_I2C2_SOURCE();
51
switch (clocksource) {
52
case RCC_I2C2CLKSOURCE_PCLK1:
targets/TARGET_STM/TARGET_STM32WL/i2c_device.c
@@ -47,7 +47,7 @@ uint32_t i2c_get_pclk(I2CName i2c)
53
0 commit comments