Chaining in Ticker - switched arguments [fix]

pull/28/head
0xc0170 2013-08-14 18:03:32 +02:00
parent de715aed95
commit 3d9be83e38
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public:
*/
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
@ -158,7 +158,7 @@ public:
*/
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;
}