Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libraries/mbed/api/Ticker.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Ticker : public TimerEvent {
*/
template<typename T>
pFunctionPointer_t attach(T* tptr, void (T::*mptr)(void), float t) {
return attach_us(tptr, mptr, t * 1000000.0f);
return attach_us(tptr, mptr, t * 1000000.0f);
}

/** Add a function to be called by the Ticker at the end of the call chain
Expand Down Expand Up @@ -158,7 +158,7 @@ class Ticker : public TimerEvent {
*/
template<typename T>
pFunctionPointer_t attach_us(T* tptr, void (T::*mptr)(void), unsigned int t) {
pFunctionPointer_t pf = _chain.add(mptr, tptr);
pFunctionPointer_t pf = _chain.add(tptr, mptr);
setup(t);
return pf;
}
Expand Down