Skip to content

Commit

Permalink
Replace Nvm_Init with KvsInit. Update qvCHIP API. (#12476)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbudzon-q authored and pull[bot] committed Oct 24, 2023
1 parent 37f3bcc commit 5ffe3f9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/platform/qpg/qpgConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,18 @@ namespace Internal {

CHIP_ERROR QPGConfig::Init()
{
qvCHIP_KvsInit();
const qvStatus_t status = qvCHIP_KvsInit();

return CHIP_NO_ERROR;
if (QV_STATUS_NO_ERROR == status)
{
return CHIP_NO_ERROR;
}
else if (QV_STATUS_BUFFER_TOO_SMALL == status)
{
return CHIP_ERROR_BUFFER_TOO_SMALL;
}

return CHIP_ERROR_INTERNAL;
}

CHIP_ERROR QPGConfig::ReadConfigValue(Key key, bool & val)
Expand Down

0 comments on commit 5ffe3f9

Please sign in to comment.