From df5c1734eaa7d0b4aef2ce17f6316e4977945e7c Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Fri, 24 Oct 2025 10:29:25 +0200 Subject: [PATCH] Warn that -P option is ignored for ch341a --- src/ch341a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ch341a.c b/src/ch341a.c index 653ffb1a..b719f5ac 100644 --- a/src/ch341a.c +++ b/src/ch341a.c @@ -201,7 +201,9 @@ static int ch341a_open(PROGRAMMER *pgm, const char *port) { int errorCode = USB_ERROR_NOTFOUND; libusb_device_handle *handle = NULL; - pmsg_trace("ch341a_open(\"%s\")\n", port); + pmsg_debug("%s(\"%s\")\n", __func__, port); + if(!str_eq(port, "usb")) + pmsg_warning("option -P %s ignored\n", port); if(!my.USB_init) { my.USB_init = 1;