diff --git a/cores/arduino/wiring_analog.c b/cores/arduino/wiring_analog.c index c5a715b5..d59d1549 100644 --- a/cores/arduino/wiring_analog.c +++ b/cores/arduino/wiring_analog.c @@ -38,7 +38,7 @@ void analogReference(uint8_t mode) if((mode == EXTERNAL) || (mode == VDD)) { /* Set reference in ADC peripheral */ - ADC0.CTRLC |= mode; + ADC0.CTRLC |= mode | ADC_SAMPCAP_bm; /* If reference using internal reference from VREF */ } else if ( pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy