Skip to content

feat(SDFS): Add destructor for SD card to clean up resources #11521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 30, 2025
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