 void sendFrameToFile(CAN_FRAME &frame, int whichBus)
 {
     uint8_t buff[40];
-    uint8_t temp;
+    //uint8_t temp;
     uint32_t timestamp;
     if (settings.fileOutputType == BINARYFILE) {
         if (frame.extended) frame.id |= 1 << 31;

        Can0.begin(settings.CAN0Speed, 255);
        SerialUSB.print("Enabled CAN0 with speed ");
        SerialUSB.println(settings.CAN0Speed);
    } else Can0.disable();

    if (settings.CAN1_Enabled) {
        if (settings.CAN1ListenOnly) {


 Created: March 4, 2017
 Author: Collin Kidder

 Revision History:
    344    TonyD 25/11/2017.
        Updated support for Analogue background DMA updates, M2 Digital I/O as well as M2_12VIO library support in SYS_io.cpp 


Copyright (c) 2014-2017 Collin Kidder, Michael Neuweiler, Charles Galpin

