We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec1ff5a commit dca61ecCopy full SHA for dca61ec
test/device_test_harness.h
@@ -17,11 +17,19 @@ void setup(void (*runAllTests)(void))
17
#if !defined(SIMULATOR)
18
delay(5000);
19
#endif
20
+ while (!Serial) {
21
+ ; // Wait for serial connection
22
+ }
23
24
UNITY_BEGIN(); // IMPORTANT LINE!
25
26
runAllTests();
27
28
+ // A small delay here helps STM32
29
+#if !defined(SIMULATOR)
30
+ delay(500);
31
+#endif
32
+
33
UNITY_END(); // stop unit testing
34
35
#if defined(SIMULATOR) // Tell SimAVR we are done
0 commit comments