From 3d9be83e387cbed02d2799a653c134b3f7440e72 Mon Sep 17 00:00:00 2001 From: 0xc0170 Date: Wed, 14 Aug 2013 18:03:32 +0200 Subject: [PATCH] Chaining in Ticker - switched arguments [fix] --- libraries/mbed/api/Ticker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/mbed/api/Ticker.h b/libraries/mbed/api/Ticker.h index 64911039388..68cc9ecdc10 100644 --- a/libraries/mbed/api/Ticker.h +++ b/libraries/mbed/api/Ticker.h @@ -104,7 +104,7 @@ class Ticker : public TimerEvent { */ template 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 @@ class Ticker : public TimerEvent { */ template 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; }