Skip to content
Prev Previous commit
Next Next commit
fix(nvs): Remove unused Unity header and improve Serial wait loop
  • Loading branch information
JakubAndrysek committed Jun 18, 2025
commit e15e7f7ea980cc50b4944a5cf1e996f588fff767
6 changes: 4 additions & 2 deletions tests/validation/nvs/nvs.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <Arduino.h>
#include <Preferences.h>
#include <unity.h>


struct TestData {
Expand Down Expand Up @@ -31,7 +30,9 @@ void validate_types() {

void setup() {
Serial.begin(115200);
while (!Serial) {}
while (!Serial) {
;
}

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

Expand Down Expand Up @@ -125,6 +126,7 @@ void setup() {

// Close the Preferences, wait and restart
preferences.end();
Serial.flush();
delay(1000);
ESP.restart();
}
Expand Down