From 265aa3296b1f769a048296e39bf92720618e9943 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 23 Nov 2021 09:54:18 +0000 Subject: [PATCH] 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 --- jtag3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jtag3.c b/jtag3.c index 80e028e4..74bc74ad 100644 --- a/jtag3.c +++ b/jtag3.c @@ -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;