Skip to content

Commit

Permalink
Return error CHIIP_DEVICE_ERROR_CONFIG_NOT_FOUND if not found in pers…
Browse files Browse the repository at this point in the history
…istent storage
  • Loading branch information
shubhamdp committed Aug 24, 2022
1 parent 457997a commit bc39961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/ESP32/ConfigurationManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ CHIP_ERROR ConfigurationManagerImpl::GetProductURL(char * buf, size_t bufSize)
CHIP_ERROR err = ReadConfigValueStr(ESP32Config::kConfigKey_ProductURL, buf, bufSize, bufSize);
if (err == CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND)
{
return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
return CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND;
}
return err;
}
Expand All @@ -199,7 +199,7 @@ CHIP_ERROR ConfigurationManagerImpl::GetProductLabel(char * buf, size_t bufSize)
CHIP_ERROR err = ReadConfigValueStr(ESP32Config::kConfigKey_ProductLabel, buf, bufSize, bufSize);
if (err == CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND)
{
return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
return CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND;
}
return err;
}
Expand Down

0 comments on commit bc39961

Please sign in to comment.