Skip to content

Commit daf844f

Browse files
committed
docu updated.
1 parent 47d92eb commit daf844f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ use `paramtererizedCallbackFunction`. We pass the context (so the pointer to the
110110
and it will give it back to the lambda.
111111

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

0 commit comments

Comments
 (0)