mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-29 07:25:27 +00:00
In usbOpenDevice(), clear the error code when returning successfully.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@705 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2006-12-21 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
Submitted by Christian Starkjohann:
|
||||||
|
* ser_avrdoper.c (usbOpenDevice): clear the error code when
|
||||||
|
returning successfully.
|
||||||
|
|
||||||
2006-12-21 Joerg Wunsch <j@uriah.heep.sax.de>
|
2006-12-21 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
Submitted by Christian Starkjohann:
|
Submitted by Christian Starkjohann:
|
||||||
|
@@ -179,6 +179,7 @@ static int usbOpenDevice(union filedescriptor *fdp, int vendor, char *vendorName
|
|||||||
free(deviceDetails);
|
free(deviceDetails);
|
||||||
if(handle != INVALID_HANDLE_VALUE){
|
if(handle != INVALID_HANDLE_VALUE){
|
||||||
fdp->pfd = (void *)handle;
|
fdp->pfd = (void *)handle;
|
||||||
|
errorCode = 0;
|
||||||
}
|
}
|
||||||
return errorCode;
|
return errorCode;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user