X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Fmain.c;h=17cbaf922d06500a76234b4e78988edfc19cc76f;hb=8b944e7f0c1bd11fab1f1ce1862367f5e077bad0;hp=a4d24b60b69bf56bb3851d17fd2a2414bcaef4d4;hpb=1b6a3060adfff3171b8e605c7fea82f04cf7c768;p=carl9170fw.git diff --git a/carlfw/src/main.c b/carlfw/src/main.c index a4d24b6..17cbaf9 100644 --- a/carlfw/src/main.c +++ b/carlfw/src/main.c @@ -54,10 +54,10 @@ void clock_set(enum cpu_clock_t clock_, bool on) * So watch out, if you need _stable_ timer interrupts. */ #ifdef CONFIG_CARL9170FW_RADIO_FUNCTIONS - if (fw.phy.frequency < 3000000) + if (fw.phy.frequency < 3000000) set(AR9170_PWR_REG_PLL_ADDAC, 0x5163); - else - set(AR9170_PWR_REG_PLL_ADDAC, 0x5143); + else + set(AR9170_PWR_REG_PLL_ADDAC, 0x5143); #else set(AR9170_PWR_REG_PLL_ADDAC, 0x5163); #endif /* CONFIG_CARL9170FW_RADIO_FUNCTIONS */