Skip to content

Commit 8bdee60

Browse files
authored
fix(gpio): simple mistake in calling __pinMode() fnuction
1 parent 130dbd6 commit 8bdee60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-gpio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ extern void ARDUINO_ISR_ATTR __digitalWrite(uint8_t pin, uint8_t val) {
172172
#endif // RGB_BUILTIN
173173
// if the pin is not in GPIO mode, make it happen
174174
if (perimanGetPinBus(pin, ESP32_BUS_TYPE_GPIO) == NULL) {
175-
__pinMode(uint8_t pin, OUTPUT);
175+
__pinMode(pin, OUTPUT);
176176
}
177177
gpio_set_level((gpio_num_t)pin, val);
178178
}

0 commit comments

Comments
 (0)