Commit 8f3b9f4
committed
Merge pull request atomvm#755 from bettio/handle-ns-not-found
ESP32/NVS: return `namespace_not_found` as `undefined` in get function
Fixes `nvs_get_binary/2` so it can work on devices with a completely erased NVS
area.
namespace not found is quite common in a newly flash device, for consistency
reasons it should be returned as undefined.
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
0 commit comments