Skip to content

Commit 40466a6

Browse files
committed
[Tizen] Initialize vendor and product names
1 parent d33a886 commit 40466a6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/platform/Tizen/ConfigurationManagerImpl.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "ConfigurationManagerImpl.h"
2727

2828
#include <lib/support/CodeUtils.h>
29+
#include <lib/support/Span.h>
2930
#include <platform/CHIPDeviceConfig.h>
3031
#include <platform/ConfigurationManager.h>
3132
#include <platform/Tizen/PosixConfig.h>
@@ -59,12 +60,24 @@ CHIP_ERROR ConfigurationManagerImpl::Init()
5960
SuccessOrExit(error);
6061
}
6162

63+
if (!Internal::PosixConfig::ConfigValueExists(Internal::PosixConfig::kConfigKey_VendorName))
64+
{
65+
error = StoreVendorName(chip::CharSpan::fromCharString(CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_NAME));
66+
SuccessOrExit(error);
67+
}
68+
6269
if (!Internal::PosixConfig::ConfigValueExists(Internal::PosixConfig::kConfigKey_ProductId))
6370
{
6471
error = StoreProductId(CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID);
6572
SuccessOrExit(error);
6673
}
6774

75+
if (!Internal::PosixConfig::ConfigValueExists(Internal::PosixConfig::kConfigKey_ProductName))
76+
{
77+
error = StoreProductName(chip::CharSpan::fromCharString(CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_NAME));
78+
SuccessOrExit(error);
79+
}
80+
6881
error = CHIP_NO_ERROR;
6982

7083
exit:

0 commit comments

Comments
 (0)