Make the retrier in case of rx timeouts more robust, by increasing
the receive timeout once a timeout happened. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@458 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
6d05dfda8c
commit
6af6fe9b3a
|
@ -1234,8 +1234,10 @@ static int jtagmkII_paged_write(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
|
|||
"%s: jtagmkII_paged_write(): "
|
||||
"timeout/error communicating with programmer (status %d)\n",
|
||||
progname, status);
|
||||
if (tries++ < 3)
|
||||
if (tries++ < 4) {
|
||||
serial_recv_timeout *= 2;
|
||||
goto retry;
|
||||
}
|
||||
fprintf(stderr,
|
||||
"%s: jtagmkII_paged_write(): fatal timeout/"
|
||||
"error communicating with programmer (status %d)\n",
|
||||
|
@ -1326,8 +1328,10 @@ static int jtagmkII_paged_load(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
|
|||
"%s: jtagmkII_paged_load(): "
|
||||
"timeout/error communicating with programmer (status %d)\n",
|
||||
progname, status);
|
||||
if (tries++ < 3)
|
||||
if (tries++ < 4) {
|
||||
serial_recv_timeout *= 2;
|
||||
goto retry;
|
||||
}
|
||||
fprintf(stderr,
|
||||
"%s: jtagmkII_paged_load(): fatal timeout/"
|
||||
"error communicating with programmer (status %d)\n",
|
||||
|
|
Loading…
Reference in New Issue