From d1af80102d7c478a156c14591c56cbb675b3890b Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 19 Nov 2014 17:23:14 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ stk500v2.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8d08f7e0..7ebaf04b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-11-19 Joerg Wunsch + + 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 patch #8529 2 more ftdi_syncbb devices diff --git a/stk500v2.c b/stk500v2.c index 53b92917..5f1f79ed 100644 --- a/stk500v2.c +++ b/stk500v2.c @@ -624,6 +624,11 @@ static int stk500v2_recv(PROGRAMMER * pgm, unsigned char *msg, size_t maxsize) { int timeout = 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 struct timeval tv; double tstart, tnow;