mirror of https://github.com/ARMmbed/mbed-os.git
Fix bug in templated attach function
The arguments passed to `Callback<void()>`'s constructor were the wrong way round, thus preventing the `attach` function from being instantiated. This patch corrects that by switching the order of the arguments.pull/9344/head
parent
d20b59153a
commit
b6aba2f985
|
@ -126,8 +126,8 @@ public:
|
||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void attach(T* tptr, void (T::*mptr)(void)) {
|
void attach(T* tptr, void (T::*mptr)(void)) {
|
||||||
if((mptr != NULL) && (tptr != NULL)) {
|
if((tptr != NULL) && (mptr != NULL)) {
|
||||||
rx = Callback<void()>(mptr, tptr);
|
rx = Callback<void()>(tptr, mptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue