Skip to content

Commit 694819d

Browse files
committed
Fixes digitalPinToTouchChannel() for ESP32-S3
1 parent 4c0035d commit 694819d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#endif
5454

5555
#include "soc/soc_caps.h"
56+
#include "soc/touch_sensor_periph.h"
5657
// It fixes lack of pin definition for S3 and for any future SoC
5758
// this function works for ESP32, ESP32-S2 and ESP32-S3 - including the C3, it will return -1 for any pin
5859
int8_t digitalPinToTouchChannel(uint8_t pin) {

0 commit comments

Comments
 (0)