Mega2560: timeout communicating with programmer

Hi, I was a few days testing with the code. I removed a paragraph and no timeout avrdude problem, but I did not see the problem. I have read this thread and this was the solution. No !!! in my code and I was uploading fine.

Thanks!!!