From 693fa6c75bf1f6d94005c68e9d627fc065f828e5 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Sun, 21 Jun 2026 14:07:43 +0100 Subject: [PATCH 1/2] Fix condition for notice message --- src/pickit5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pickit5.c b/src/pickit5.c index 2b60c8d5..2352093d 100644 --- a/src/pickit5.c +++ b/src/pickit5.c @@ -673,7 +673,7 @@ static int pickit5_open(PROGRAMMER *pgm, const char *port) { pinfo.usbinfo.vid = pgm->usbvid? pgm->usbvid: USB_VENDOR_MICROCHIP; pinfo.usbinfo.flags = PINFO_FL_SILENT; if(numids >= 2) { // Valid VID:PID was specified in -P port - if(pinfo.usbinfo.vid != new_vid || pinfo.usbinfo.pid != new_pid) + if(pinfo.usbinfo.vid != new_vid || *(int *) ldata(lfirst(pgm->usbpid)) != new_pid) pmsg_notice("overwriting VID:PID to %04x:%04x\n", new_vid, new_pid); pinfo.usbinfo.vid = new_vid; pinfo.usbinfo.pid = new_pid; From b6d5a4e7866dfddc3ac3c44cbeabd6de47fea04b Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Sun, 21 Jun 2026 14:10:06 +0100 Subject: [PATCH 2/2] Only #define bool if undefined --- src/whereami.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/whereami.c b/src/whereami.c index 78f02c39..392d1fa5 100644 --- a/src/whereami.c +++ b/src/whereami.c @@ -83,7 +83,9 @@ extern "C" { #if (_MSC_VER >= 1900) #include #else +#ifndef bool #define bool int +#endif #define false 0 #define true 1 #endif