mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2026-10-01 01:46:51 +00:00
Fix logic bug in previous commit
Comparison against "usb" was done the wrong way. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1480 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -1476,7 +1476,7 @@ int jtag3_open_common(PROGRAMMER * pgm, char * port)
|
||||
return -1;
|
||||
#endif
|
||||
|
||||
if (matches(port, "usb")) {
|
||||
if (!matches(port, "usb")) {
|
||||
avrdude_message(MSG_INFO, "%s: jtag3_open_common(): JTAGICE3/EDBG port names must start with \"usb\"\n",
|
||||
progname);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user