# Avoid the 10 attempts of Avrdude when programmer is not responding

Sometime I update my sketch in the Arduino environment, and when I click on the transfer arrow but forget to plug my arduino (I'm using the UART in my project so every time I need to plug/unplug some wires) it's a drama, avrdude throw this for at least 2 minutes :

avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x32

It's a real pain because I can't stop avrdude when this happens. Is there a way to configure the Arduino environment to disable it?

• Good question, I thought it would be an easy fix, but couldn't find anything in the AVRDude command line options (nongnu.org/avrdude/user-manual/avrdude_4.html) or the avrdude config files. – Paul Jun 1 '16 at 14:46
• On Linux I just open a terminal and type killall avrdude and it stops it... – Majenko Jun 1 '16 at 15:42
Unfortunately, MAX_SYNC_ATTEMPTS is a constant in the source code, and one which appears several times.