Camera Control

  Serial3.flush();

You haven't sent anything to Serial3 yet. Why do you need to wait until all pending output has been sent?