mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
docs(nvs_flash): correct public API docs for error code
-align nvs.h / nvs_handle.hpp Doxygen with the implementation: fix return codes -guard nvs_open against a NULL out_handle
This commit is contained in:
@@ -298,6 +298,10 @@ static esp_err_t nvs_find_ns_handle(nvs_handle_t c_handle, NVSHandleSimple** han
|
||||
|
||||
extern "C" esp_err_t nvs_open_from_partition(const char *part_name, const char* namespace_name, nvs_open_mode_t open_mode, nvs_handle_t *out_handle)
|
||||
{
|
||||
if (out_handle == nullptr) {
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
|
||||
esp_err_t lock_result = Lock::init();
|
||||
if (lock_result != ESP_OK) {
|
||||
return lock_result;
|
||||
|
||||
Reference in New Issue
Block a user