   else if ((temp == 0xD8) & (temp_last == 0xFF))
   {
     is_header = true;
-    Serial.println(F("ACK IMG"));
+    Serial.println(F("ACK IMG END"));
     Serial.write(temp_last);
     Serial.write(temp);
   }

  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 (OV5640_MINI_5MP_PLUS)

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