Fix frequency rounding
This commit is contained in:
parent
a78bdc509f
commit
4ce91c54b3
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue