X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=carlfw%2Fsrc%2Fmain.c;h=17cbaf922d06500a76234b4e78988edfc19cc76f;hp=a4d24b60b69bf56bb3851d17fd2a2414bcaef4d4;hb=484cb254482ee644cc2981d1e2753fca2718bcd3;hpb=1b6a3060adfff3171b8e605c7fea82f04cf7c768 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 */