       break;
     }
   }
-
   logfile = SD.open(filename, FILE_WRITE);
   if( ! logfile ) {
     Serial.print("Couldnt create ");

  Serial.print("File name: ");
  Serial.println(logFileName); // Debug print the file name
}


/* End code */

  "time",
  "satellites",
  "fix",
  "fixquality",
  "Acc1",
  "Acc2",
  "Angle1",
  "Angle2"
};
//////////////////////
// Log Rate Control //
//////////////////////
#define LOG_RATE 1000 // Log every second
unsigned long lastLog = 0; // Global var to keep of last time we logged
// blink out an error code
void error(uint8_t errno) {
  while(1) {
