We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47d92eb commit daf844fCopy full SHA for daf844f
README.md
@@ -110,7 +110,7 @@ use `paramtererizedCallbackFunction`. We pass the context (so the pointer to the
110
and it will give it back to the lambda.
111
112
```CPP
113
-okBtn.attachClick([](void *ctx){Serial.println(*(((BtnHandler*)(ctx))) -> state}}), this);
+okBtn.attachClick([](void *ctx){Serial.println(*((BtnHandler*)ctx) -> state);}, this);
114
```
115
116
See also discussion in [Issue #112](https://github.com/mathertel/OneButton/issues/112).
0 commit comments