mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-17 02:54:17 +00:00
Change the second parameter of the ser_open method from "baud" into a
"union pinfo", so the USB parameters can be passed without hacks. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1276 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
4
wiring.c
4
wiring.c
@@ -153,9 +153,11 @@ static int wiring_open(PROGRAMMER * pgm, char * port)
|
||||
{
|
||||
int timetosnooze;
|
||||
void *mycookie = STK500V2PDATA(pgm)->chained_pdata;
|
||||
union pinfo pinfo;
|
||||
|
||||
strcpy(pgm->port, port);
|
||||
serial_open(port, pgm->baudrate ? pgm->baudrate: 115200, &pgm->fd);
|
||||
pinfo.baud = pgm->baudrate ? pgm->baudrate: 115200;
|
||||
serial_open(port, pinfo, &pgm->fd);
|
||||
|
||||
/* If we have a snoozetime, then we wait and do NOT toggle DTR/RTS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user