Skip to content

Commit a8bead7

Browse files
authored
fix(gpio): Fix GPIO warning message (#11268)
1 parent e0d4d17 commit a8bead7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ extern int ARDUINO_ISR_ATTR __digitalRead(uint8_t pin) {
185185
#endif // RGB_BUILTIN
186186
// This work when the pin is set as GPIO and in INPUT mode. For all other pin functions, it may return inconsistent response
187187
if (perimanGetPinBus(pin, ESP32_BUS_TYPE_GPIO) == NULL) {
188-
log_w("IO %i is not set as GPIO. digitalRead() may return an inconsistent value.");
188+
log_w("IO %i is not set as GPIO. digitalRead() may return an inconsistent value.", pin);
189189
}
190190
return gpio_get_level((gpio_num_t)pin);
191191
}

0 commit comments

Comments
 (0)