fix(gpio): Fix GPIO warning message (#11268)

This commit is contained in:
Lucas Saavedra Vaz 2025-04-22 03:16:46 -03:00 committed by GitHub
parent e0d4d176ea
commit a8bead7efb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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