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

    mode = 2;
    temp = 0xff;
    start_capture = 2;
    Serial.println(F("ACK CMD CAM start video streaming."));
    break;
    case 0x30:
    mode = 3;
    temp = 0xff;
    start_capture = 3;
    Serial.println(F("CAM start single shoot."));
    break;
    case 0x31:
    temp = 0xff;

  }
  if (myCAM.get_bit(ARDUCHIP_TRIG, CAP_DONE_MASK))
  {
    Serial.println(F("ACK CMD CAM Capture Done. END"));
    delay(50);
    read_fifo_burst(myCAM);
    //Clear the capture done flag
    myCAM.clear_fifo_flag();
