-// CAN Receive Example
-//
+// CAN Receive Example by Cory Fowler
+// modified with CS constant, 2016 MyLab-odyssey
 
 #include <mcp_can.h>
 #include <SPI.h>

{
    if(!digitalRead(2))                         // If pin 2 is low, read receive buffer
    {
      CAN0.readMsgBuf(&rxId, &len, rxBuf);              // Read data: len = data length, buf = data byte(s)

      Serial.print("ID: ");                     // Print the message ID.
      Serial.print(rxId, HEX);


/*********************************************************************************************************
  END FILE
*********************************************************************************************************/