Skip to content

Commit

Permalink
Update callback (project-chip#34147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlatusek authored and austina-csa committed Jul 10, 2024
1 parent 5865fe2 commit 688386f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/tests/TestCHIPCallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ TEST_F(TestCHIPCallback, NotifierTest)
{
int n = 1;
Callback<Notifier::NotifyFn> cb(reinterpret_cast<Notifier::NotifyFn>(increment_by), &n);
Callback<Notifier::NotifyFn> cancelcb(reinterpret_cast<Notifier::NotifyFn>(canceler), cb.Cancel());
Callback<Notifier::NotifyFn> cancelcb([](void * call, int) { canceler(reinterpret_cast<Cancelable *>(call)); }, cb.Cancel());

// safe to call anytime
cb.Cancel();
Expand Down

0 comments on commit 688386f

Please sign in to comment.