mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 02:31:06 +00:00
Add a connection_type attribute to each programmer, rather than
trying to hard-code the default port name in main.c. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1047 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -207,7 +207,7 @@ static int usbtiny_open(PROGRAMMER* pgm, char* name)
|
||||
char *dev_name = NULL;
|
||||
|
||||
// if no -P was given or '-P usb' was given
|
||||
if(name == default_parallel || strcmp(name, "usb") == 0)
|
||||
if(strcmp(name, "usb") == 0)
|
||||
name = NULL;
|
||||
else {
|
||||
// calculate bus and device names from -P option
|
||||
|
||||
Reference in New Issue
Block a user