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)
Diff: CANPort.h
- Revision:
- 2:1824d1421b6d
- Parent:
- 1:f0b4e47d948d
- Child:
- 3:4c780c641125
diff -r f0b4e47d948d -r 1824d1421b6d CANPort.h --- 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