We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a037491 commit 6eab2ecCopy full SHA for 6eab2ec
ports/raspberrypi/common-hal/analogbufio/BufferedIn.c
@@ -53,7 +53,7 @@ void common_hal_analogbufio_bufferedin_construct(analogbufio_bufferedin_obj_t *s
53
// sample rate determines divisor, not zero.
54
55
// sample_rate is forced to be >= 1 in shared-bindings
56
- float clk_div = (float)ADC_CLOCK_INPUT / (float)sample_rate;
+ float clk_div = (float)ADC_CLOCK_INPUT / (float)sample_rate - 1;
57
adc_set_clkdiv(clk_div);
58
59
// Set up the DMA to start transferring data as soon as it appears in FIFO
0 commit comments