8000 add pin num to errors · cipherz/arduino-esp32@45b869c · GitHub
[go: up one dir, main page]

Skip to content

Commit 45b869c

Browse files
committed
add pin num to errors
1 parent 51184d7 commit 45b869c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/esp32/esp32-hal-adc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ uint16_t __analogRead(uint8_t pin)
130130
if ( r == ESP_OK ) {
131131
return value;
132132
} else if ( r == ESP_ERR_INVALID_STATE ) {
133-
log_e("%s: ADC2 not initialized yet.", esp_err_to_name(r));
133+
log_e("GPIO%u: %s: ADC2 not initialized yet.", pin, esp_err_to_name(r));
134134
} else if ( r == ESP_ERR_TIMEOUT ) {
135-
log_e("%s: ADC2 is in use by Wi-Fi.", esp_err_to_name(r));
135+
log_e("GPIO%u: %s: ADC2 is in use by Wi-Fi.", pin, esp_err_to_name(r));
136136
} else {
137-
log_e("%s", esp_err_to_name(r));
137+
log_e("GPIO%u: %s", pin, esp_err_to_name(r));
138138
}
139139
} else {
140140
return adc1_get_raw(channel);

0 commit comments

Comments
 (0)
0