Fix frequency rounding

This commit is contained in:
Jan Hamal Dvořák 2024-08-02 20:34:51 +02:00
parent a78bdc509f
commit 4ce91c54b3

View file

@ -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)