Skip to content

Commit 2667aeb

Browse files
committed
Fix one more omission
1 parent 4dc866e commit 2667aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -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])
105+
if (gsPowerBalances[aIndex].HasValue())
106106
{
107107
chip::CopyCharSpanToMutableCharSpan(gsPowerBalances[aIndex].label.Value(), aOutLabel.Value());
108108
}

0 commit comments

Comments
 (0)