mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
component/bt: fix nvs_get_str_or_blob length output error
This commit is contained in:
@@ -400,11 +400,9 @@ static esp_err_t nvs_get_str_or_blob(nvs_handle handle, nvs::ItemType type, cons
|
||||
} else if (*length < dataSize) {
|
||||
*length = dataSize;
|
||||
return ESP_ERR_NVS_INVALID_LENGTH;
|
||||
} else if (*length > dataSize) {
|
||||
*length = dataSize;
|
||||
}
|
||||
|
||||
|
||||
*length = dataSize;
|
||||
return entry.mStoragePtr->readItem(entry.mNsIndex, type, key, out_value, dataSize);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user