Skip to content

Commit

Permalink
ESP32/NVS: deprecate nvs_get_binary/1 function
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bettio committed Aug 8, 2023
1 parent bef89a3 commit 2ce324b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/eavmlib/src/esp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2ce324b

Please sign in to comment.