Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 2:1824d1421b6d, committed 2019-08-30
- Comitter:
- WiredHome
- Date:
- Fri Aug 30 21:44:31 2019 +0000
- Parent:
- 1:f0b4e47d948d
- Child:
- 3:4c780c641125
- Commit message:
- Code cleanup
Changed in this revision
| CANPort.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/CANPort.h Wed Aug 28 22:02:49 2019 +0000
+++ b/CANPort.h Fri Aug 30 21:44:31 2019 +0000
@@ -120,7 +120,7 @@
/// @param mptr pointer to the member function to be called
///
template <typename T> void Attach(T * tptr, void (T::*mptr)(void)) {
- can->attach(tptr, mptr);
+ can->attach(callback(tptr, mptr));
}
/// This provides control of the AutoReset feature