Skip to content

Commit cbcba53

Browse files
committed
Improve error message when ADC2 can not be used because WiFi is On
reference: #102
1 parent c37557c commit cbcba53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ uint16_t __analogRead(uint8_t pin)
161161
} else if ( r == ESP_ERR_INVALID_STATE ) {
162162
log_e("GPIO%u: %s: ADC2 not initialized yet.", pin, esp_err_to_name(r));
163163
} else if ( r == ESP_ERR_TIMEOUT ) {
164-
log_e("GPIO%u: %s: ADC2 is in use by Wi-Fi.", pin, esp_err_to_name(r));
164+
log_e("GPIO%u: %s: ADC2 is in use by Wi-Fi. Please see https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html#adc-limitations for more info", pin, esp_err_to_name(r));
165165
} else {
166166
log_e("GPIO%u: %s", pin, esp_err_to_name(r));
167167
}

0 commit comments

Comments
 (0)
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