Skip to content

Commit da31968

Browse files
committed
fix(ci): Fix touch test for esp32
1 parent 9cb63e2 commit da31968

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/validation/touch/touch.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ uint8_t TOUCH_GPIOS[] = {4, 2, 15, 13, 12, 14, 27, 33, 32};
1919

2020
#define NO_TOUCH_GPIO 25
2121

22-
#define RELEASED_VALUE 75 //75+ read value to pass test
23-
#define PRESSED_VALUE 20 //20- read value to pass test
24-
#define INTERRUPT_THRESHOLD 40
25-
2622
#elif (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
2723

2824
#define TEST_TOUCH_CHANNEL (12) //14
@@ -50,7 +46,11 @@ uint8_t TOUCH_GPIOS[] = {2, 3, 4, 5, 6/*, 7, 8, 9, 10, 11, 12 ,13, 14, 15*/};
5046
#define NO_TOUCH_GPIO 17
5147
#endif
5248

53-
#if CONFIG_IDF_TARGET_ESP32S2
49+
#if CONFIG_IDF_TARGET_ESP32
50+
#define RELEASED_VALUE 75 //75+ read value to pass test
51+
#define PRESSED_VALUE 20 //20- read value to pass test
52+
#define INTERRUPT_THRESHOLD 40
53+
#elif CONFIG_IDF_TARGET_ESP32S2
5454
#define RELEASED_VALUE 10000 //10000- read value to pass test
5555
#define PRESSED_VALUE 42000 //40000+ read value to pass test
5656
#define INTERRUPT_THRESHOLD 30000

0 commit comments

Comments
 (0)