Opencv 3.1 project on GR-PEACH board
Fork of gr-peach-opencv-project by
Diff: drivers/Ticker.cpp
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
diff -r 612c381a210f -r d5399cc887bb drivers/Ticker.cpp --- a/drivers/Ticker.cpp Tue Feb 28 17:13:35 2017 +0000 +++ b/drivers/Ticker.cpp Tue Mar 14 16:40:56 2017 +0000 @@ -18,14 +18,14 @@ #include "drivers/TimerEvent.h" #include "platform/FunctionPointer.h" #include "hal/ticker_api.h" -#include "platform/critical.h" +#include "platform/mbed_critical.h" namespace mbed { void Ticker::detach() { core_util_critical_section_enter(); remove(); - _function.attach(0); + _function = 0; core_util_critical_section_exit(); } @@ -39,7 +39,7 @@ void Ticker::handler() { insert(event.timestamp + _delay); - _function.call(); + _function(); } } // namespace mbed