From 87031f9457b61f239f90562774f7621bc5651ee2 Mon Sep 17 00:00:00 2001 From: baohongde Date: Thu, 31 Aug 2017 15:52:27 +0800 Subject: [PATCH] component/bt: fix nvs_get_str_or_blob length output error --- components/nvs_flash/src/nvs_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/nvs_flash/src/nvs_api.cpp b/components/nvs_flash/src/nvs_api.cpp index 2bf156dea..0f06def07 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); }