Skip to content

Commit 2cdc894

Browse files
Update examples/energy-management-app/energy-management-common/src/DeviceEnergyManagementDelegateImpl.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent 940f102 commit 2cdc894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ CHIP_ERROR DeviceEnergyManagementDelegate::SetOptOutState(OptOutStateEnum newVal
927927

928928
if (oldValue != newValue)
929929
{
930-
ChipLogDetail(AppServer, "mOptOutState updated to %d mPowerAdjustmentInProgress %d", static_cast<int>(mOptOutState),
930+
ChipLogDetail(AppServer, "mOptOutState updated to %d mPowerAdjustmentInProgress %d", to_underlying(mOptOutState),
931931
mPowerAdjustmentInProgress);
932932
MatterReportingAttributeChangeCallback(mEndpointId, DeviceEnergyManagement::Id, OptOutState::Id);
933933
}

0 commit comments

Comments
 (0)