Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
In mbed-src revision 17 there is a bug in Ticker.h line 161 in the attach_us() function:
/** Attach a member function to be called by the Ticker, specifiying the interval in micro-seconds * * @param tptr pointer to the object to call the member function on * @param mptr pointer to the member function to be called * @param t the time between calls in micro-seconds * * @returns * The function object created for 'tptr' and 'mptr' */ template<typename T> pFunctionPointer_t attach_us(T* tptr, void (T::*mptr)(void), unsigned int t) { pFunctionPointer_t pf = _chain.add(mptr, tptr); setup(t); return pf; }The call to _chain.add() has the arguments the wrong way around, should be
This is caught by the compiler when attempting to use that function. No test coverage for this function?