Skip to content

Commit b0d4b69

Browse files
committed
Ensure the new method is called by the deprecated one
1 parent 59a6b55 commit b0d4b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/Ticker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
119119
"attach(callback(obj, method), t).")
120120
void attach(T *obj, M method, float t)
121121
{
122-
attach(callback(obj, method), (s_timestamp_t)t);
122+
attach_s(callback(obj, method), (s_timestamp_t)t);
123123
}
124124

125125
/** Attach a function to be called by the Ticker, specifying the interval in microseconds

0 commit comments

Comments
 (0)