Skip to content

Commit 5dfaed4

Browse files
authored
Fixes: #31672 avoids a deliberate crash on targets which don't suppor… (#32058)
* Fixes: #31672 avoids a deliberate crash on targets which don't support real-time clock * Added clearer error message about checking EVSE certification requirements.
1 parent d116c7c commit 5dfaed4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/energy-management-app/energy-management-common/src/EnergyEvseDelegateImpl.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,11 @@ CHIP_ERROR GetEpochTS(uint32_t & chipEpoch)
14741474
* This should not be certifiable since getting time is a Mandatory
14751475
* feature of EVSE Cluster
14761476
*/
1477-
VerifyOrDie(err != CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE);
1477+
if (err == CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE)
1478+
{
1479+
ChipLogError(Zcl, "Platform does not support GetClock_RealTimeMS. Check EVSE certification requirements!");
1480+
return err;
1481+
}
14781482

14791483
if (err != CHIP_NO_ERROR)
14801484
{

0 commit comments

Comments
 (0)