     temp = 0xff;
     #if defined (OV2640_MINI_2MP)
       myCAM.OV2640_set_JPEG_size(OV2640_352x288);delay(1000);
-      Serial.println(F("ACK CMD switch to OV2640_352x288"));
+      Serial.println(F("ACK CMD switch to OV2640_352x288 END"));
     #elif defined (OV3640_MINI_3MP)
       myCAM.OV3640_set_JPEG_size(OV3640_640x480);delay(1000);
-      Serial.println(F("ACK CMD switch to OV3640_640x480"));
+      Serial.println(F("ACK CMD switch to OV3640_640x480 END"));
     #else
       myCAM.OV5642_set_JPEG_size(OV5642_1280x960);delay(1000);
-      Serial.println(F("ACK CMD switch to OV5642_1280x960"));
+      Serial.println(F("ACK CMD switch to OV5642_1280x960 END"));
     #endif
     break;
     case 4:
     temp = 0xff;
     #if defined (OV2640_MINI_2MP)
       myCAM.OV2640_set_JPEG_size(OV2640_640x480);delay(1000);
-      Serial.println(F("ACK CMD switch to OV2640_640x480"));
+      Serial.println(F("ACK CMD switch to OV2640_640x480 END"));
    #elif defined (OV3640_MINI_3MP)
       myCAM.OV3640_set_JPEG_size(OV3640_800x600);delay(1000);
-      Serial.println(F("ACK CMD switch to OV3640_800x600"));
+      Serial.println(F("ACK CMD switch to OV3640_800x600 END"));
     #else
       myCAM.OV5642_set_JPEG_size(OV5642_1600x1200);delay(1000);
-      Serial.println(F("ACK CMD switch to OV5642_1600x1200"));
+      Serial.println(F("ACK CMD switch to OV5642_1600x1200 END"));
     #endif
     break;
     case 5:
     temp = 0xff;
     #if defined (OV2640_MINI_2MP)
       myCAM.OV2640_set_JPEG_size(OV2640_800x600);delay(1000);
-      Serial.println(F("ACK CMD switch to OV2640_800x600"));
+      Serial.println(F("ACK CMD switch to OV2640_800x600 END"));
     #elif defined (OV3640_MINI_3MP)
       myCAM.OV3640_set_JPEG_size(OV3640_1024x768);delay(1000);
-      Serial.println(F("ACK CMD switch to OV3640_1024x768"));
+      Serial.println(F("ACK CMD switch to OV3640_1024x768 END"));
     #else
       myCAM.OV5642_set_JPEG_size(OV5642_2048x1536);delay(1000);
-      Serial.println(F("ACK CMD switch to OV5642_2048x1536"));
+      Serial.println(F("ACK CMD switch to OV5642_2048x1536 END"));
     #endif
     break;
     case 6:
     temp = 0xff;
     #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
     break;
     case 7:
     temp = 0xff;
    #if defined (OV2640_MINI_2MP)
     myCAM.OV2640_set_JPEG_size(OV2640_1280x1024);delay(1000);
-    Serial.println(F("ACK CMD switch to OV2640_1280x1024"));
+    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"));
+      Serial.println(F("ACK CMD switch to OV3640_1600x1200 END"));
    #endif
     break;
     case 8:
     temp = 0xff;
    #if defined (OV2640_MINI_2MP)
      myCAM.OV2640_set_JPEG_size(OV2640_1600x1200);delay(1000);
-     Serial.println(F("ACK CMD switch to OV2640_1600x1200"));
+     Serial.println(F("ACK CMD switch to OV2640_1600x1200 END"));
    #else
      myCAM.OV3640_set_JPEG_size(OV3640_2048x1536);delay(1000);
-     Serial.println(F("ACK CMD switch to OV3640_2048x1536"));
+     Serial.println(F("ACK CMD switch to OV3640_2048x1536 END"));
    #endif
     break;
     case 0x10:
     mode = 1;
     temp = 0xff;
     start_capture = 1;
-    Serial.println(F("ACK CMD CAM start single shoot."));
+    Serial.println(F("ACK CMD CAM start single shoot. END"));
     break;
     case 0x11: 
     temp = 0xff;

    {
      start_capture = 0;
      mode = 0;
      Serial.println(F("ACK CMD CAM stop video streaming."));
      break;
    }
    if (start_capture == 2)

  }
  if (myCAM.get_bit(ARDUCHIP_TRIG, CAP_DONE_MASK))
  {
    Serial.println(F("ACK CMD CAM Capture Done. END"));
    delay(50);
    uint8_t temp, temp_last;
    uint32_t length = 0;
    length = myCAM.read_fifo_length();
    if (length >= MAX_FIFO_SIZE ) 
    {
      Serial.println(F("ACK CMD Over size. END"));
      myCAM.clear_fifo_flag();
      return;
    }
    if (length == 0 ) //0 kb
    {
      Serial.println(F("ACK CMD Size is 0. END"));
      myCAM.clear_fifo_flag();
      return;
    }
