Skip to content

Commit 8651ad0

Browse files
committed
Compile error esp32 c3
1 parent 87a2fab commit 8651ad0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DriverPins.h

+2
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ class DriverPins {
532532
*/
533533
class DriverTouchClass : public DriverPins {
534534
#ifdef ESP32
535+
# if SOC_TOUCH_SENSOR_SUPPORTED
535536
bool isKeyPressed(uint8_t key) override {
536537
auto pin_opt = getPin(PinFunction::KEY, key);
537538
if (!pin_opt) return false;
@@ -545,6 +546,7 @@ class DriverTouchClass : public DriverPins {
545546
}
546547
return result;
547548
}
549+
# endif
548550
#endif
549551
void setTouchLimit(int limit){
550552
touch_limit = limit;

0 commit comments

Comments
 (0)