*Added Brian Dean's patch to ser_win32.c, fixing bug 14681 "-vvvv causes communication to fail"

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@546 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
c_oflynn 2005-11-24 15:00:49 +00:00
parent df1fcbe978
commit 973dd33e71
1 changed files with 5 additions and 4 deletions

View File

@ -179,6 +179,7 @@ static int ser_send(int fd, char * buf, size_t buflen)
size_t len = buflen;
unsigned char c='\0';
DWORD written;
char * b = buf;
HANDLE hComPort=(HANDLE)fd;
@ -195,8 +196,8 @@ static int ser_send(int fd, char * buf, size_t buflen)
{
fprintf(stderr, "%s: Send: ", progname);
while (buflen) {
c = *buf;
while (len) {
c = *b;
if (isprint(c)) {
fprintf(stderr, "%c ", c);
}
@ -204,8 +205,8 @@ static int ser_send(int fd, char * buf, size_t buflen)
fprintf(stderr, ". ");
}
fprintf(stderr, "[%02x] ", c);
buf++;
buflen--;
b++;
len--;
}
fprintf(stderr, "\n");
}