mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2026-11-17 02:25:42 +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:
1 parent
172fcb7c7e
commit
265aa3296b
1 file changed
+1
-1
@@ -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