Skip to content

Commit

Permalink
examples/lock-app/esp32: synchronize buttons to matter (#27270)
Browse files Browse the repository at this point in the history
Appears to have been badly copy/pasted from other examples perhaps.
Without this update call, pushing the button locally will update the
LEDs and print the messages, but will not update the matter cluster
state.

Signed-off-by: Karl Palsson <[email protected]>
  • Loading branch information
karlp authored and pull[bot] committed Sep 13, 2023
1 parent 86daa96 commit 1205039
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/lock-app/esp32/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ void AppTask::ActionCompleted(BoltLockManager::Action_t aAction)

sLockLED.Set(false);
}
if (sAppTask.mSyncClusterToButtonAction)
{
chip::DeviceLayer::SystemLayer().ScheduleWork(UpdateClusterState, nullptr);
sAppTask.mSyncClusterToButtonAction = false;
}
}

void AppTask::PostLockActionRequest(int32_t aActor, BoltLockManager::Action_t aAction)
Expand Down

0 comments on commit 1205039

Please sign in to comment.