Fork of original library to fix mbed 5 deprecation warnings
Dependencies: LPC1114_WakeInterruptIn
Fork of WakeUp by
Diff: WakeUp.h
- Revision:
- 23:884e86933aaa
- Parent:
- 10:c41bc9154a7c
--- a/WakeUp.h Wed Nov 11 20:20:27 2015 +0000 +++ b/WakeUp.h Mon Apr 10 13:05:23 2017 +0000 @@ -72,12 +72,12 @@ * @param *function function to call */ static void attach(void (*function)(void)) { - callback.attach(function); + cbk = function; } template<typename T> static void attach(T *object, void (T::*member)(void)) { - callback.attach(object, member); + cbk.attach(object, member); } /** @@ -92,7 +92,7 @@ private: - static FunctionPointer callback; + static Callback<void()> cbk; static void irq_handler(void); static float cycles_per_ms; }; \ No newline at end of file