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 <karlp@tweak.au>
  • Loading branch information
karlp authored Jun 19, 2023
1 parent b5a8d9c commit a0cb270
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 a0cb270

Please sign in to comment.