Skip to content

Commit e15e7f7

Browse files
committed
fix(nvs): Remove unused Unity header and improve Serial wait loop
1 parent 49af25a commit e15e7f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/validation/nvs/nvs.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <Arduino.h>
22
#include <Preferences.h>
3-
#include <unity.h>
43

54

65
struct TestData {
@@ -31,7 +30,9 @@ void validate_types() {
3130

3231
void setup() {
3332
Serial.begin(115200);
34-
while (!Serial) {}
33+
while (!Serial) {
34+
;
35+
}
3536

3637
preferences.begin("my-app", false);
3738

@@ -125,6 +126,7 @@ void setup() {
125126

126127
// Close the Preferences, wait and restart
127128
preferences.end();
129+
Serial.flush();
128130
delay(1000);
129131
ESP.restart();
130132
}

0 commit comments

Comments
 (0)