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.
Ticker
1 parent d847f9f commit 42bf813Copy full SHA for 42bf813
drivers/Ticker.h
@@ -90,7 +90,7 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
90
#endif
91
void attach(F &&func, float t)
92
{
93
- attach_us(std::forward<F>(func), t * 1000000.0f);
+ attach_us(std::forward<F>(func), (int)(t * 1000000));
94
}
95
96
/** Attach a member function to be called by the Ticker, specifying the interval in seconds
0 commit comments