 if(myCAM.get_bit(ARDUCHIP_TRIG, CAP_DONE_MASK))
 {
   myCAM.set_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK);
-  Serial.println(F("ACK CMD CAM Capture Done."));
+  Serial.println(F("ACK CMD CAM Capture Done. END"));delay(50);
   temp = 0;
-  Serial.println(F("ACK IMG"));
+  Serial.println(F("ACK IMG  END"));
   while( (temp != 0xD9) | (temp_last != 0xFF) )
   {
     temp_last = temp;

  myCAM.write_reg(ARDUCHIP_TEST1, 0x55);
  temp = myCAM.read_reg(ARDUCHIP_TEST1);
  if (temp != 0x55){
    Serial.println(F("ACK CMD SPI interface Error!"));
    delay(1000);continue;
  }else{
    Serial.println(F("ACK CMD SPI interface OK."));break;
  }
}
#if defined (OV2640_MINI_2MP)

  myCAM.clear_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK);
  #if defined (OV2640_MINI_2MP)
    myCAM.OV2640_set_JPEG_size(OV2640_1280x1024);delay(1000);
    Serial.println(F("ACK CMD switch to OV2640_1280x1024 END"));
  #else
    myCAM.OV3640_set_JPEG_size(OV3640_1600x1200);delay(1000);
    Serial.println(F("ACK CMD switch to OV3640_1600x1200 END"));
   #endif
  myCAM.set_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK);
  break;
