Skip to content

Commit b84b03b

Browse files
committed
another small fix
1 parent 2667aeb commit b84b03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/all-clusters-app/all-clusters-common/src/energy-preference-delegate.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ EPrefDelegate::GetEnergyBalanceAtIndex(chip::EndpointId aEndpoint, size_t aIndex
6868
if (aIndex < GetNumEnergyBalances(aEndpoint))
6969
{
7070
aOutStep = gsEnergyBalances[aIndex].step;
71-
if (gsEnergyBalances[aIndex].HasValue())
71+
if (gsEnergyBalances[aIndex].label.HasValue())
7272
{
7373
chip::CopyCharSpanToMutableCharSpan(gsEnergyBalances[aIndex].label.Value(), aOutLabel.Value());
7474
}
@@ -102,7 +102,7 @@ EPrefDelegate::GetLowPowerModeSensitivityAtIndex(chip::EndpointId aEndpoint, siz
102102
if (aIndex < GetNumLowPowerModeSensitivities(aEndpoint))
103103
{
104104
aOutStep = gsPowerBalances[aIndex].step;
105-
if (gsPowerBalances[aIndex].HasValue())
105+
if (gsPowerBalances[aIndex].label.HasValue())
106106
{
107107
chip::CopyCharSpanToMutableCharSpan(gsPowerBalances[aIndex].label.Value(), aOutLabel.Value());
108108
}

0 commit comments

Comments
 (0)