mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-17 02:54:17 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user