 }
 
 void SDPrepare(void){
-	bool Ready;
+	//bool Ready;
 	uint8_t i;
   SerialUSB.println("12MHz SPI Ready");
   SerialUSB.print("Initializing SD card..."); //Initialization message

		  myFile.write(buf00, bufSize); // save buf01 to card
		  t = micros()-t;
	  }
	  if (!SDFlush(t)) {
		  SerialUSB.println("Error reopening file");
		  return;
	  }
	  t2 = micros();
	  if (recByteCount % 2 * bufSize == 0) {
		  t1 = micros();
		  myFile.write(buf01, bufSize); // save buf01 to card
		  t1 = micros()-t1;
	  }
	  if (!SDFlush(t1)) {
		  SerialUSB.println("Error reopening file");
		  return;
	  }
	  t2 = micros() - t2;
	  //SerialUSB.print(i); //For tests
	  //SerialUSB.print(". ");
	  SerialUSB.println(t2);


void loop()
{
  uint32_t t=1000;
  uint32_t t1=1000;
  uint32_t t2;
  //uint32_t i;//732422 for 3Gigs
  //for (i = 0; i < 200000; i++) {
