We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06c91c commit 9cc816dCopy full SHA for 9cc816d
drivers/Ticker.h
@@ -82,10 +82,10 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
82
* @param func pointer to the function to be called
83
* @param t the time between calls in seconds
84
*/
85
- template <typename F, typename T>
86
- MBED_FORCEINLINE void attach(F&& func, T&& t)
+ template <typename F>
+ MBED_FORCEINLINE void attach(F &&func, float t)
87
{
88
- attach_us(func, t * 1000000.0f);
+ attach_us(std::forward<F>(func), t * 1000000.0f);
89
}
90
91
/** Attach a member function to be called by the Ticker, specifying the interval in seconds
0 commit comments