bug #43626: Inconsistent timeouts in stk500v2

* stk500v2.c (stk500v2_recv): Add a reference to the bug report
but don't change anything, lest to break it somehow



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1342 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch 2014-11-19 17:23:14 +00:00
parent 6da2f461d5
commit 1d3025f52a
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2014-11-19 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #43626: Inconsistent timeouts in stk500v2
* stk500v2.c (stk500v2_recv): Add a reference to the bug report
but don't change anything, lest to break it somehow
2014-11-14 Rene Liebscher <R.Liebscher@gmx.de> 2014-11-14 Rene Liebscher <R.Liebscher@gmx.de>
patch #8529 2 more ftdi_syncbb devices patch #8529 2 more ftdi_syncbb devices

View File

@ -624,6 +624,11 @@ static int stk500v2_recv(PROGRAMMER * pgm, unsigned char *msg, size_t maxsize) {
int timeout = 0; int timeout = 0;
unsigned char c, checksum = 0; unsigned char c, checksum = 0;
/*
* The entire timeout handling here is not very consistent, see
*
* https://savannah.nongnu.org/bugs/index.php?43626
*/
long timeoutval = SERIAL_TIMEOUT; // seconds long timeoutval = SERIAL_TIMEOUT; // seconds
struct timeval tv; struct timeval tv;
double tstart, tnow; double tstart, tnow;