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:
Joerg Wunsch 2021-11-23 09:54:18 +00:00
parent 172fcb7c7e
commit 265aa3296b
1 changed files with 1 additions and 1 deletions

View File

@ -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;