       //discard anything more than one char long
       while (Serial.available() > 0) 
         Serial.read();
-      
-      Serial.print("You typed: ");
-      Serial.println(rx_byte);
       
       switch(rx_byte)
       {

   void gotFrame(CAN_message_t &frame, int mailbox); 

   void testFunc(void);
};


void CANClass::printFrame(CAN_message_t &frame, int mailbox)
{
   Serial.print("ID: ");
   Serial.print(frame.id, HEX);
   Serial.print(" Data: ");
   for (int c = 0; c < frame.len; c++) 
   {
      Serial.print(frame.buf[c], HEX);
      Serial.write(' ');
   }
   Serial.write('\r');
   Serial.write('\n');
}


    rx_byte = Serial.read();

    //discard anything more than one char long
    clearSerialBuf();
    
    Serial.print("You typed: ");
    Serial.println(rx_byte);
