From 2ce324b91b0f499bc27e706171e79c12ae4ecd0b Mon Sep 17 00:00:00 2001 From: Davide Bettio Date: Tue, 8 Aug 2023 21:23:46 +0200 Subject: [PATCH] ESP32/NVS: deprecate `nvs_get_binary/1` function Let's explicitly mention the namespace, rather having a default one, so applications are encouraged using their own namespace, rather a kitchen sink one. Signed-off-by: Davide Bettio --- libs/eavmlib/src/esp.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/eavmlib/src/esp.erl b/libs/eavmlib/src/esp.erl index 2d56c6b7d..590839e45 100644 --- a/libs/eavmlib/src/esp.erl +++ b/libs/eavmlib/src/esp.erl @@ -150,7 +150,7 @@ nvs_fetch_binary(Namespace, Key) when is_atom(Namespace) andalso is_atom(Key) -> erlang:nif_error(undefined). %%----------------------------------------------------------------------------- -%% @doc Equivalent to nvs_get_binary(?ATOMVM_NVS_NS, Key). +%% @doc (Deprecated) equivalent to nvs_get_binary(?ATOMVM_NVS_NS, Key). %% @end %%----------------------------------------------------------------------------- -spec nvs_get_binary(Key :: atom()) -> binary() | undefined.