Error in version using Ardiuno CAN

I am getting this error of version here how i solve it .Please anyone suggeset me .

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: “Arduino Uno”

SineWaveCAN:33:2: error: #error “cannot guess hardware version”

#error “cannot guess hardware version”

^~~~~

exit status 1

#error “cannot guess hardware version”

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

Hi there,

Which Arduino Uno are you using? And what CAN transciever are you using?

I’m guessing that you’re using an Arduino Uno R3 and MCP2515-based CAN adapter, which requires uncommenting line 22 // #define IS_MCP2515, and not // #define IS_ARDUINO_BUILTIN, as this Arduino does not have a built-in CAN peripheral (hence the need for the MCP2515).