Skip to content
Commit 894503c7 authored by Mike J. Chen's avatar Mike J. Chen Committed by Henrik Brix Andersen
Browse files

nvs: improve nvs_flash_cmp_const()



Replace the use of a memcmp of a temp buffer filled with
the comparison value with a direct comparison of
the read buffer contents.

Improves speed of the function (no more memset() call)
and reduces stack usage.

Signed-off-by: default avatarMike J. Chen <mjchen@google.com>
parent 46d6e2e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment