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

Diff for: cores/esp32/esp32-hal-adc.c

+1-1
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)