mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #131 from c1728p9/fix_serial_callbacks
Update Callback to fix fault in serial interrupts
commit
a386819bf7
|
@ -796,6 +796,9 @@ public:
|
||||||
/** Call the attached function
|
/** Call the attached function
|
||||||
*/
|
*/
|
||||||
R call() {
|
R call() {
|
||||||
|
if (NULL == _thunk) {
|
||||||
|
return (R)0;
|
||||||
|
}
|
||||||
return _thunk(_obj, &_func);
|
return _thunk(_obj, &_func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue