From bbf903fbc4457871cadbc912da46afe5287cc107 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 31 May 2022 20:59:22 -0400 Subject: [PATCH] Convert one more flag to mask for compile on TI --- examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp | 2 +- examples/window-app/common/src/WindowApp.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp b/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp index c6b05762d495e5..2cb5475fcdf4f9 100644 --- a/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp +++ b/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp @@ -467,7 +467,7 @@ void AppTask::UpdateClusterState(void) void AppTask::UpdateCluster(intptr_t context) { EmberStatus status; - BitFlags pumpStatus; + BitMask pumpStatus; ChipLogProgress(NotSpecified, "Update Cluster State"); diff --git a/examples/window-app/common/src/WindowApp.cpp b/examples/window-app/common/src/WindowApp.cpp index a9d357eea42e6c..0cada84b7b046c 100644 --- a/examples/window-app/common/src/WindowApp.cpp +++ b/examples/window-app/common/src/WindowApp.cpp @@ -294,8 +294,8 @@ void WindowApp::DispatchEvent(const WindowApp::Event & event) void WindowApp::DispatchEventAttributeChange(chip::EndpointId endpoint, chip::AttributeId attribute) { Cover * cover = GetCover(endpoint); - chip::BitFlags mode; - chip::BitFlags configStatus; + chip::BitMask mode; + chip::BitMask configStatus; if (nullptr == cover) { @@ -426,7 +426,7 @@ void WindowApp::Cover::Init(chip::EndpointId endpoint) TypeSet(endpoint, Type::kTiltBlindLiftAndTilt); // Attribute: Id 7 ConfigStatus - chip::BitFlags configStatus = ConfigStatusGet(endpoint); + chip::BitMask configStatus = ConfigStatusGet(endpoint); configStatus.Set(ConfigStatus::kLiftEncoderControlled); configStatus.Set(ConfigStatus::kTiltEncoderControlled); configStatus.Set(ConfigStatus::kOnlineReserved); @@ -438,7 +438,7 @@ void WindowApp::Cover::Init(chip::EndpointId endpoint) EndProductTypeSet(endpoint, EndProductType::kInteriorBlind); // Attribute: Id 24 Mode - chip::BitFlags mode; + chip::BitMask mode; mode.Clear(Mode::kMotorDirectionReversed); mode.Clear(Mode::kMaintenanceMode); mode.Clear(Mode::kCalibrationMode);