From: baohongde Date: Thu, 31 Aug 2017 07:52:27 +0000 (+0800) Subject: component/bt: fix nvs_get_str_or_blob length output error X-Git-Tag: v3.1-dev~286^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87031f9457b61f239f90562774f7621bc5651ee2;p=esp-idf component/bt: fix nvs_get_str_or_blob length output error --- diff --git a/components/nvs_flash/src/nvs_api.cpp b/components/nvs_flash/src/nvs_api.cpp index 2bf156dea0..0f06def07e 100644 --- a/components/nvs_flash/src/nvs_api.cpp +++ b/components/nvs_flash/src/nvs_api.cpp @@ -402,7 +402,7 @@ static esp_err_t nvs_get_str_or_blob(nvs_handle handle, nvs::ItemType type, cons return ESP_ERR_NVS_INVALID_LENGTH; } - *length = dataSize; + *length = dataSize; return entry.mStoragePtr->readItem(entry.mNsIndex, type, key, out_value, dataSize); }