Merge branch 'prefs_no_churn_reuse' into integration

This commit is contained in:
J. Nick Koston
2026-01-03 21:21:03 -10:00
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ struct NVSData {
size_t len;
void set_data(const uint8_t *src, size_t size) {
if (this->len != size) {
if (!this->data || this->len != size) {
this->data = std::make_unique<uint8_t[]>(size);
this->len = size;
}

View File

@@ -22,7 +22,7 @@ struct NVSData {
size_t len;
void set_data(const uint8_t *src, size_t size) {
if (this->len != size) {
if (!this->data || this->len != size) {
this->data = std::make_unique<uint8_t[]>(size);
this->len = size;
}