Skip to content

Commit

Permalink
docu updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathertel committed May 9, 2023
1 parent 47d92eb commit daf844f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ use `paramtererizedCallbackFunction`. We pass the context (so the pointer to the
and it will give it back to the lambda.

```CPP
okBtn.attachClick([](void *ctx){Serial.println(*(((BtnHandler*)(ctx))) -> state}}), this);
okBtn.attachClick([](void *ctx){Serial.println(*((BtnHandler*)ctx) -> state);}, this);
```
See also discussion in [Issue #112](https://github.com/mathertel/OneButton/issues/112).
Expand Down

0 comments on commit daf844f

Please sign in to comment.