Open bsculley opened 6 years ago
I encountered the same errors from compiling the SendCANMessages example and noticed this section in CAN.h
:
// Experimental
//
virtual void setMask(uint8_t maskID, CAN_Filter mask);
//
virtual void setMask(CAN_Filter mask);
//
virtual void clearMask(uint8_t maskID = 0);
//
virtual void setFilter(uint8_t filterID, CAN_Filter filter);
//
virtual void setFilter(CAN_Filter filter);
//
virtual void clearFilter(uint8_t filterID = 0);
//
virtual void enableRXInterrupt();
//
virtual void disableRXInterrupt();
There appear to be some functions in CAN.h
that are not needed for the Due. In an effort to maintain functionality with other CAN controllers this library supports, I added preprocessor directives as follows:
#if defined(__SAM3X8E__) // Arduino Due
/*
#endif // __SAM3X8E__
// Experimental
//
virtual void setMask(uint8_t maskID, CAN_Filter mask);
//
virtual void setMask(CAN_Filter mask);
//
virtual void clearMask(uint8_t maskID = 0);
//
virtual void setFilter(uint8_t filterID, CAN_Filter filter);
//
virtual void setFilter(CAN_Filter filter);
//
virtual void clearFilter(uint8_t filterID = 0);
//
virtual void enableRXInterrupt();
//
virtual void disableRXInterrupt();
#if defined(__SAM3X8E__) // Arduino Due
*/
#endif // __SAM3X8E__
This fix should work for you as well.
I have installed the library and am trying to compile the SendCANMessages example.
I'm getting the following errors: