We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2123878 commit f118f0eCopy full SHA for f118f0e
src/EasyButtonTouch.cpp
@@ -7,7 +7,7 @@
7
8
#if defined(ESP32)
9
#include "EasyButtonTouch.h"
10
-#if defined(SOC_TOUCH_SENSOR_SUPPORTED)
+#if defined(SOC_TOUCH_SENSOR_SUPPORTED) || (defined(SOC_TOUCH_SENSOR_NUM) && SOC_TOUCH_SENSOR_NUM > 1)
11
12
void EasyButtonTouch::setThreshold(int threshold)
13
{
src/EasyButtonTouch.h
@@ -8,7 +8,7 @@
#if !defined(_EasyButtonTouch_h) and defined(ESP32)
#define _EasyButtonTouch_h
#include <include/soc/soc_caps.h>
#include <Arduino.h>
14
#include <Filter.h>
0 commit comments