Reputation: 1
I'm writing a programme that generates a fixed frequency using a ticker in mbed environment. I'm still at the begineing so it's a little bit messy.
Upvotes: 0
Views: 471
Reputation: 27352
In the attach
line change &this
to this
. this
is already a pointer to self, you don't need to take the address.
flipper.attach(callback(this, &Speaker::flip), 0.5/frequency);
Upvotes: 2