avrdude: bugfixes

This commit is contained in:
Vojtech Kral 2018-05-07 12:05:51 +02:00
parent 07817c8ee5
commit 3d09f2a980
3 changed files with 9 additions and 3 deletions

View file

@ -151,7 +151,9 @@ static int wiring_open(PROGRAMMER * pgm, char * port)
strcpy(pgm->port, port);
pinfo.baud = pgm->baudrate ? pgm->baudrate: 115200;
serial_open(port, pinfo, &pgm->fd);
if (serial_open(port, pinfo, &pgm->fd) < 0) {
return -1;
}
/* If we have a snoozetime, then we wait and do NOT toggle DTR/RTS */