Skip to content

Commit 1205797

Browse files
pankorepull[bot]
authored andcommitted
[Ameba] Fix Read Product Appearance (#28860)
* Fix Read Product Appearance * Updated product finish to other and product color to black * ran restyle-diff.sh
1 parent 38473ce commit 1205797

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/platform/Ameba/FactoryDataProvider.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <platform/internal/GenericConfigurationManagerImpl.ipp>
3232

3333
using namespace ::chip::DeviceLayer::Internal;
34+
using namespace chip::app::Clusters::BasicInformation;
3435

3536
namespace chip {
3637
namespace DeviceLayer {
@@ -664,5 +665,19 @@ CHIP_ERROR FactoryDataProvider::GetRotatingDeviceIdUniqueId(MutableByteSpan & un
664665
return err;
665666
}
666667

668+
CHIP_ERROR FactoryDataProvider::GetProductFinish(ProductFinishEnum * finish)
669+
{
670+
CHIP_ERROR err = CHIP_NO_ERROR;
671+
*finish = ProductFinishEnum::kOther;
672+
return err;
673+
}
674+
675+
CHIP_ERROR FactoryDataProvider::GetProductPrimaryColor(ColorEnum * primaryColor)
676+
{
677+
CHIP_ERROR err = CHIP_NO_ERROR;
678+
*primaryColor = ColorEnum::kBlack;
679+
return err;
680+
}
681+
667682
} // namespace DeviceLayer
668683
} // namespace chip

src/platform/Ameba/FactoryDataProvider.h

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class FactoryDataProvider : public chip::Credentials::DeviceAttestationCredentia
6060
CHIP_ERROR GetHardwareVersion(uint16_t & hardwareVersion) override;
6161
CHIP_ERROR GetHardwareVersionString(char * buf, size_t bufSize) override;
6262
CHIP_ERROR GetRotatingDeviceIdUniqueId(MutableByteSpan & uniqueIdSpan) override;
63+
CHIP_ERROR GetProductFinish(app::Clusters::BasicInformation::ProductFinishEnum * finish) override;
64+
CHIP_ERROR GetProductPrimaryColor(app::Clusters::BasicInformation::ColorEnum * primaryColor) override;
6365

6466
bool kReadFromFlash = false;
6567

0 commit comments

Comments
 (0)