Skip to content

Commit ae7b57f

Browse files
committed
fix(ci): Touch test + IDF compilation fixes
1 parent 030c07e commit ae7b57f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThre
318318
endif()
319319
endif()
320320

321+
if(IDF_TARGET STREQUAL "esp32p4")
322+
list(APPEND requires esp_driver_touch_sens)
323+
endif()
324+
321325
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})
322326

323327
if(NOT CONFIG_FREERTOS_HZ EQUAL 1000 AND NOT "$ENV{ARDUINO_SKIP_TICK_CHECK}")

tests/validation/touch/ci.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
},
66
"requires": [
77
"CONFIG_SOC_TOUCH_SENSOR_SUPPORTED=y"
8-
],
9-
"targets": {
10-
"esp32p4": false
11-
}
8+
]
129
}

tests/validation/touch/touch.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ void test_touch_read(void) {
135135
#else
136136
TEST_ASSERT_GREATER_THAN(PRESSED_VALUE, touchRead(TOUCH_GPIOS[k]));
137137
#endif
138+
}
138139
#else //TOUCH V3
139-
140140
//TEST RELEASE STATE
141141
touch_value_t touch_unpressed[sizeof(TOUCH_GPIOS)];
142142
for (int i = 0; i < sizeof(TOUCH_GPIOS); i++) {

0 commit comments

Comments
 (0)