Skip to content

Commit

Permalink
[nxp fromtree] [NXP][common][NVS] Fix NVS Matter issue into ClearConf…
Browse files Browse the repository at this point in the history
…igValue API (project-chip#37688)

Signed-off-by: Martin Girardot <martin.girardot@nxp.com>
(cherry picked from commit 5398152)
  • Loading branch information
Martin-NXP committed Feb 21, 2025
1 parent 0c2844d commit f962c51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/nxp/common/NXPConfigNVS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ CHIP_ERROR NXPConfig::ClearConfigValue(Key key)
{
char key_name[SETTINGS_MAX_NAME_LEN + 1];
sprintf(key_name, CHIP_DEVICE_INTEGER_SETTINGS_KEY "/%04x", key);
return ClearConfigValue(key_name);
if (settings_delete(key_name) != 0)
return CHIP_ERROR_PERSISTED_STORAGE_FAILED;
return CHIP_NO_ERROR;
}

CHIP_ERROR NXPConfig::ClearConfigValue(const char * keyString)
Expand Down

0 comments on commit f962c51

Please sign in to comment.