  //Open the new file
  outFile = SD.open(str, O_WRITE | O_CREAT | O_TRUNC);
  if(! outFile){
-  Serial.println("open file faild");
+  Serial.println("File open failed");
   return;
  }
  i = 0;

  myCAM.clear_fifo_flag();
  //Start capture
  myCAM.start_capture();
  Serial.println("star Capture");
 while(!myCAM.get_bit(ARDUCHIP_TRIG , CAP_DONE_MASK));
 Serial.println("Capture Done!");  


        outFile.write(buf, i);    
      //Close the file
        outFile.close();
        Serial.println("Image save OK!");
        is_header = false;
        i = 0;
    }  
