Skip to content

Commit

Permalink
[NXP][common][NVS] Fix NVS Matter issue into ClearConfigValue API (pr…
Browse files Browse the repository at this point in the history
…oject-chip#37688)

Signed-off-by: Martin Girardot <martin.girardot@nxp.com>
  • Loading branch information
Martin-NXP authored Feb 20, 2025
1 parent 27374a3 commit 5398152
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 5398152

Please sign in to comment.