Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 45b869c

Browse filesBrowse files
committed
add pin num to errors
1 parent 51184d7 commit 45b869c
Copy full SHA for 45b869c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎cores/esp32/esp32-hal-adc.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-adc.c
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.