Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restyle
Browse files Browse the repository at this point in the history
mkardous-silabs committed Feb 24, 2022

Verified

This commit was signed with the committer’s verified signature.
1 parent 6eb6566 commit 150b02a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/light-switch-app/efr32/src/binding-handler.cpp
Original file line number Diff line number Diff line change
@@ -142,8 +142,7 @@ void SwitchToggleOnOff(intptr_t context)
data->clusterId = Clusters::OnOff::Id;
data->commandId = Clusters::OnOff::Commands::Toggle::Id;

BindingManager::GetInstance().NotifyBoundClusterChanged(1 /* endpointId */, Clusters::OnOff::Id,
static_cast<void *>(data));
BindingManager::GetInstance().NotifyBoundClusterChanged(1 /* endpointId */, Clusters::OnOff::Id, static_cast<void *>(data));
}

void SwitchOnOffOn(intptr_t context)
@@ -154,8 +153,7 @@ void SwitchOnOffOn(intptr_t context)
data->clusterId = Clusters::OnOff::Id;
data->commandId = Clusters::OnOff::Commands::On::Id;

BindingManager::GetInstance().NotifyBoundClusterChanged(1 /* endpointId */, Clusters::OnOff::Id,
static_cast<void *>(data));
BindingManager::GetInstance().NotifyBoundClusterChanged(1 /* endpointId */, Clusters::OnOff::Id, static_cast<void *>(data));
}

void SwitchOnOffOff(intptr_t context)
@@ -166,8 +164,7 @@ void SwitchOnOffOff(intptr_t context)
data->clusterId = Clusters::OnOff::Id;
data->commandId = Clusters::OnOff::Commands::Off::Id;

BindingManager::GetInstance().NotifyBoundClusterChanged(1 /* endpointId */, Clusters::OnOff::Id,
static_cast<void *>(data));
BindingManager::GetInstance().NotifyBoundClusterChanged(1 /* endpointId */, Clusters::OnOff::Id, static_cast<void *>(data));
}

CHIP_ERROR InitBindingHandler()

0 comments on commit 150b02a

Please sign in to comment.