Fix maximum amplitude

This commit is contained in:
Jan Hamal Dvořák 2024-07-20 20:54:43 +02:00
parent b0a3aeb50b
commit 0fd6d60031

View file

@ -446,7 +446,7 @@ static void rf_rx(void)
* We are allowing the counters to only go as high * We are allowing the counters to only go as high
* as sampling rate. * as sampling rate.
*/ */
int64_t max_amplitude = CLK_SYS_HZ / 2 / sample_rate; int64_t max_amplitude = CLK_SYS_HZ / 1 / sample_rate;
for (int i = 0; i < IQ_SAMPLES; i++) { for (int i = 0; i < IQ_SAMPLES; i++) {
int64_t I = next_sample(cos_ptr + 0, prevI); int64_t I = next_sample(cos_ptr + 0, prevI);