mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
update the size after updating total size
This commit is contained in:
@@ -1543,9 +1543,9 @@ esp_err_t get_val_from_nvs(attribute_t *attribute, esp_matter_attr_val_t &val)
|
||||
} else {
|
||||
val.type = current_attribute->val.type;
|
||||
val.val.a.b = buffer;
|
||||
val.val.a.s = len;
|
||||
val.val.a.n = len;
|
||||
val.val.a.t = len + (current_attribute->val.val.a.t - current_attribute->val.val.a.s);
|
||||
val.val.a.s = len;
|
||||
nvs_get_blob(handle, attribute_key, buffer, &len);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user