   myCAM.clear_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK);  
   #if defined (OV2640_MINI_2MP)  
     myCAM.OV2640_set_JPEG_size(OV2640_1024x768);delay(1000);
-    Serial.println(F("ACK CMD switch to OV2640_1024x768")); 
+    Serial.println(F("ACK CMD switch to OV2640_1024x768 END")); 
  #elif defined (OV3640_MINI_3MP)
     myCAM.OV3640_set_JPEG_size(OV3640_1280x960);delay(1000);
-    Serial.println(F("ACK CMD switch to OV3640_1280x960"));       
+    Serial.println(F("ACK CMD switch to OV3640_1280x960 END"));       
   #else
     myCAM.OV5642_set_JPEG_size(OV5642_2592x1944);delay(1000);
-    Serial.println(F("ACK CMD switch to OV5642_2592x1944"));
+    Serial.println(F("ACK CMD switch to OV5642_2592x1944 END"));
   #endif
   myCAM.set_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK); 
   break;

  Wire.begin();
  Serial.begin(921600);
#endif
Serial.println(F("ACK CMD ArduCAM Start!")); 
// set the SPI_CS as an output:
pinMode(SPI_CS, OUTPUT);
// initialize SPI:

    myCAM.rdSensorReg8_8(OV2640_CHIPID_HIGH, &vid);
    myCAM.rdSensorReg8_8(OV2640_CHIPID_LOW, &pid);
    if ((vid != 0x26 ) && (( pid != 0x41 ) || ( pid != 0x42 ))){
      Serial.println(F("ACK CMD Can't find OV2640 module! END"));
      delay(1000);continue;
    }
    else{
      Serial.println(F("ACK CMD OV2640 detected. END"));break;
    } 
  }
#elif defined (OV3640_MINI_3MP)
