ADC setAveraging(8) and setAveraging(16) have opposite effect

Status
Not open for further replies.

tveenker

Member
@pedvide

I think in ADC_Module::setAveraging() the setBit/clearBit calls are reversed for the 8 and 16 samples cases. The comments are correct. I noticed this when I saw with setAveraging(16) I get a higher sampling rate than with setAveraging(8).

Can you have a look please? Thanks.

Theo
 
Are you using the latest version of the library ? The bit settings were updated with a patch on June 25.
 
Are you using the latest version of the library ? The bit settings were updated with a patch on June 25.

I used the one included in the teensyduino package. I have now downloaded the ADC lib from github and indeed the issue is fixed.
Thanks.
 
Status
Not open for further replies.
Back
Top