From 4ce91c54b3cb49fb20ee0d41a23d4cf94bbef7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= Date: Fri, 2 Aug 2024 20:34:51 +0200 Subject: [PATCH] Fix frequency rounding --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a418364..cd424d6 100644 --- a/src/main.c +++ b/src/main.c @@ -255,7 +255,7 @@ static void lo_generate_phase(uint32_t *buf, size_t len, uint32_t step, uint32_t static void rx_lo_init(double req_freq, bool align) { - const double step_hz = (double)CLK_SYS_HZ / ((32 << LO_BITS_DEPTH) / 2.0); + const double step_hz = (double)CLK_SYS_HZ / ((8 << LO_BITS_DEPTH) / 2.0); double freq = req_freq; if (align)