CANPort provides a higher level interface to a CAN communication channel, and provides timestamping, servicing additional hardware interfaces (optional activity LED, CAN transceiver slope control)

Files at this revision

API Documentation at this revision

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