Skip to content

Commit

Permalink
Update KeyValueStoreManagerImpl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen authored Aug 27, 2024
1 parent dee76ec commit 91c920e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/ESP32/KeyValueStoreManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ KeyValueStoreManagerImpl KeyValueStoreManagerImpl::sInstance;
CHIP_ERROR KeyValueStoreManagerImpl::_Get(const char * key, void * value, size_t value_size, size_t * read_bytes_size,
size_t offset_bytes)
{
// value may be NULL when checking whether the key exists

// Offset and partial reads are not supported in nvs, for now just return NOT_IMPLEMENTED. Support can be added in the
// future if this is needed.
VerifyOrReturnError(offset_bytes == 0, CHIP_ERROR_NOT_IMPLEMENTED);
Expand Down

0 comments on commit 91c920e

Please sign in to comment.