Skip to content

Commit

Permalink
Convert one more flag to mask for compile on TI
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jun 1, 2022
1 parent cf0826f commit bbf903f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ void AppTask::UpdateClusterState(void)
void AppTask::UpdateCluster(intptr_t context)
{
EmberStatus status;
BitFlags<PumpConfigurationAndControl::PumpStatus> pumpStatus;
BitMask<PumpConfigurationAndControl::PumpStatus> pumpStatus;

ChipLogProgress(NotSpecified, "Update Cluster State");

Expand Down
8 changes: 4 additions & 4 deletions examples/window-app/common/src/WindowApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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> mode;
chip::BitFlags<ConfigStatus> configStatus;
chip::BitMask<Mode> mode;
chip::BitMask<ConfigStatus> configStatus;

if (nullptr == cover)
{
Expand Down Expand Up @@ -426,7 +426,7 @@ void WindowApp::Cover::Init(chip::EndpointId endpoint)
TypeSet(endpoint, Type::kTiltBlindLiftAndTilt);

// Attribute: Id 7 ConfigStatus
chip::BitFlags<ConfigStatus> configStatus = ConfigStatusGet(endpoint);
chip::BitMask<ConfigStatus> configStatus = ConfigStatusGet(endpoint);
configStatus.Set(ConfigStatus::kLiftEncoderControlled);
configStatus.Set(ConfigStatus::kTiltEncoderControlled);
configStatus.Set(ConfigStatus::kOnlineReserved);
Expand All @@ -438,7 +438,7 @@ void WindowApp::Cover::Init(chip::EndpointId endpoint)
EndProductTypeSet(endpoint, EndProductType::kInteriorBlind);

// Attribute: Id 24 Mode
chip::BitFlags<Mode> mode;
chip::BitMask<Mode> mode;
mode.Clear(Mode::kMotorDirectionReversed);
mode.Clear(Mode::kMaintenanceMode);
mode.Clear(Mode::kCalibrationMode);
Expand Down

0 comments on commit bbf903f

Please sign in to comment.