test
Fork of mbed-dev by
Diff: drivers/Ticker.h
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
- Child:
- 168:e84263d55307
--- a/drivers/Ticker.h Tue Feb 28 17:13:35 2017 +0000 +++ b/drivers/Ticker.h Tue Mar 14 16:40:56 2017 +0000 @@ -18,7 +18,7 @@ #include "drivers/TimerEvent.h" #include "platform/Callback.h" -#include "platform/toolchain.h" +#include "platform/mbed_toolchain.h" namespace mbed { /** \addtogroup drivers */ @@ -101,7 +101,7 @@ * @param t the time between calls in micro-seconds */ void attach_us(Callback<void()> func, timestamp_t t) { - _function.attach(func); + _function = func; setup(t); }