mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9344 from Pharap/fix-attach-function
Fix bug in templated attach functionpull/9428/head
commit
f48c1a9b13
|
@ -126,8 +126,8 @@ public:
|
|||
*/
|
||||
template<typename T>
|
||||
void attach(T* tptr, void (T::*mptr)(void)) {
|
||||
if((mptr != NULL) && (tptr != NULL)) {
|
||||
rx = Callback<void()>(mptr, tptr);
|
||||
if((tptr != NULL) && (mptr != NULL)) {
|
||||
rx = Callback<void()>(tptr, mptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue