We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f168a4 commit abc9f8fCopy full SHA for abc9f8f
tests/touch/touch.ino
@@ -1,4 +1,8 @@
1
#include <unity.h>
2
+#include "soc/soc_caps.h"
3
+
4
+#if SOC_TOUCH_SENSOR_NUM > 0
5
6
#include "driver/touch_pad.h"
7
8
#if CONFIG_IDF_TARGET_ESP32
@@ -150,7 +154,6 @@ void test_touch_errors(void) {
150
154
TEST_ASSERT_FALSE(touchRead(NO_TOUCH_GPIO));
151
155
}
152
156
153
-
157
void setup() {
158
Serial.begin(115200);
159
while (!Serial) {
@@ -167,3 +170,25 @@ void setup() {
167
170
void loop() {
168
171
169
172
173
174
+#endif
175
+//PASS TEST for UNSUPPORTED CHIPS
176
177
+void test_pass(void){
178
+ TEST_ASSERT_EQUAL(1, 1);
179
+}
180
181
+void setup() {
182
+ Serial.begin(115200);
183
+ while (!Serial) {
184
+ ;
185
+ }
186
187
+ UNITY_BEGIN();
188
+ RUN_TEST(test_pass);
189
+ UNITY_END();
190
191
192
+void loop() {
193
194
0 commit comments