Jonathan Jones
/
Radios
Radio Structures in OOP
Diff: utils/RTOS_Management/FunctionPointerRJ.cpp
- Revision:
- 4:989d51f3e6ef
- Parent:
- 3:dc7e9c6bc26c
--- a/utils/RTOS_Management/FunctionPointerRJ.cpp Sat Jan 03 04:35:32 2015 +0000 +++ b/utils/RTOS_Management/FunctionPointerRJ.cpp Sat Jan 03 11:04:31 2015 +0000 @@ -23,19 +23,19 @@ attach(function); } -void FunctionPointerRJ::attach(void (*function)(void)) +void FunctionPointerRJ::attach(void(*function)(void)) { _function = function; _object = 0; } -void FunctionPointerRJ::attach(void (*function)(RTP_t*)) +void FunctionPointerRJ::attach(void(*function)(RTP_t*)) { _functionRTP = function; _object = 0; } -void FunctionPointerRJ::attach(void (*function)(void const*)) +void FunctionPointerRJ::attach(void(*function)(void const*)) { _functionConst = function; _object = 0; @@ -55,7 +55,7 @@ if (_functionRTP) { _functionRTP(p); } else if (_object) { - _membercaller(_object, _member); + _membercallerRTP(_object, _member, p); } }