diff --git a/src/app/clusters/scenes-server/scenes-server.cpp b/src/app/clusters/scenes-server/scenes-server.cpp index fc81a3d6a09a1b..086189ebd4a79d 100644 --- a/src/app/clusters/scenes-server/scenes-server.cpp +++ b/src/app/clusters/scenes-server/scenes-server.cpp @@ -120,9 +120,10 @@ CHIP_ERROR ScenesServer::Init() if (EMBER_ZCL_STATUS_SUCCESS == status) { // According to spec, bit 7 MUST match feature bit 0 (SceneNames) - BitMask nameSupport = - (featureMap & to_underlying(Feature::kSceneNames)) ? BitMask(NameSupportBitmap::kSceneNames) : BitMask(); - status = Attributes::NameSupport::Set(endpoint, nameSupport); + BitMask nameSupport = (featureMap & to_underlying(Feature::kSceneNames)) + ? BitMask(NameSupportBitmap::kSceneNames) + : BitMask(); + status = Attributes::NameSupport::Set(endpoint, nameSupport); if (EMBER_ZCL_STATUS_SUCCESS != status) { ChipLogDetail(Zcl, "ERR: setting NameSupport on Endpoint %hu Status: %x", endpoint, status);