Fix startup ADC clkdiv
This commit is contained in:
parent
758488c054
commit
e02806f3cc
|
@ -480,7 +480,7 @@ int main()
|
||||||
adc_gpio_init(RX_PIN);
|
adc_gpio_init(RX_PIN);
|
||||||
adc_select_input(RX_PIN - 26);
|
adc_select_input(RX_PIN - 26);
|
||||||
adc_fifo_setup(true, true, 1, false, false);
|
adc_fifo_setup(true, true, 1, false, false);
|
||||||
adc_set_clkdiv(96.0f * ((ADC_RATE / ((float)sample_rate / DECIMATE)) - 1.0f) - 1.0f);
|
adc_set_clkdiv(96.0f * ((float)ADC_RATE / (sample_rate * DECIMATE)) - 1.0f);
|
||||||
adc_run(true);
|
adc_run(true);
|
||||||
|
|
||||||
rx_lo_init(frequency + sample_rate);
|
rx_lo_init(frequency + sample_rate);
|
||||||
|
|
Loading…
Reference in a new issue