diff --git a/cpu/stm32_common/dist/clk_conf/clk_conf.c b/cpu/stm32_common/dist/clk_conf/clk_conf.c index 80fa2b827db470694e0ed0be3171a9486bf3eee1..25312632f6470bd9c39fcfa73f1bc7470f9dbc39 100644 --- a/cpu/stm32_common/dist/clk_conf/clk_conf.c +++ b/cpu/stm32_common/dist/clk_conf/clk_conf.c @@ -405,7 +405,7 @@ int main(int argc, char **argv) break; } } - if (cfg->family == STM32F0) { + if (cfg->family != STM32F0) { for (apb2_pre = 1; apb2_pre <= 16; apb2_pre <<= 1) { if (coreclock / apb2_pre <= cfg->max_apb2) { break;