   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);
   }

    myCAM.rdSensorReg16_8(OV5640_CHIPID_HIGH, &vid);
    myCAM.rdSensorReg16_8(OV5640_CHIPID_LOW, &pid);
    if ((vid != 0x56) || (pid != 0x40)){
      Serial.println(F("ACK CMD Can't find OV5640 module!"));
      delay(1000); continue;
    }else{
      Serial.println(F("ACK CMD OV5640 detected."));break;      
    }
  }
#else

    myCAM.rdSensorReg16_8(OV5642_CHIPID_HIGH, &vid);
    myCAM.rdSensorReg16_8(OV5642_CHIPID_LOW, &pid);
    if ((vid != 0x56) || (pid != 0x42)){
      Serial.println(F("ACK CMD Can't find OV5642 module! END"));
      delay(1000);continue;
    }else{
      Serial.println(F("ACK CMD OV5642 detected. END"));break;      
    }
  }
#endif
