Fix maximum amplitude
This commit is contained in:
parent
b0a3aeb50b
commit
0fd6d60031
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue