File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 26
26
#include " ConfigurationManagerImpl.h"
27
27
28
28
#include < lib/support/CodeUtils.h>
29
+ #include < lib/support/Span.h>
29
30
#include < platform/CHIPDeviceConfig.h>
30
31
#include < platform/ConfigurationManager.h>
31
32
#include < platform/Tizen/PosixConfig.h>
@@ -59,12 +60,24 @@ CHIP_ERROR ConfigurationManagerImpl::Init()
59
60
SuccessOrExit (error);
60
61
}
61
62
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
+
62
69
if (!Internal::PosixConfig::ConfigValueExists (Internal::PosixConfig::kConfigKey_ProductId ))
63
70
{
64
71
error = StoreProductId (CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID);
65
72
SuccessOrExit (error);
66
73
}
67
74
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
+
68
81
error = CHIP_NO_ERROR;
69
82
70
83
exit :
You can’t perform that action at this time.
0 commit comments