]> granicus.if.org Git - esp-idf/commitdiff
component/bt: fix nvs_get_str_or_blob length output error
authorbaohongde <baohongde@espressif.com>
Thu, 31 Aug 2017 07:52:27 +0000 (15:52 +0800)
committerbaohongde <baohongde@espressif.com>
Fri, 8 Sep 2017 04:02:35 +0000 (12:02 +0800)
components/nvs_flash/src/nvs_api.cpp

index 2bf156dea0d8a611f546e87a73ff2cb791169cfa..0f06def07ea0cd18e58cfb4831c1af590f86f6d9 100644 (file)
@@ -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);
 }