From d5720026e5b3333e1685c5cd44e4dd701538b247 Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Sat, 3 May 2025 14:42:45 +0200 Subject: [PATCH] Read chip revision as 0 for non-UPDI parts --- src/pickit5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pickit5.c b/src/pickit5.c index eb522414..af7b9528 100644 --- a/src/pickit5.c +++ b/src/pickit5.c @@ -1496,7 +1496,7 @@ static int pickit5_read_chip_rev(const PROGRAMMER *pgm, const AVRPART *p, unsign if(is_updi(pgm)) // On UPDI Devices, the chip revision is sent as the 4th byte *chip_rev = my.devID[3]; else // For the rest, more research is neccessary - chip_rev = 0x00; + *chip_rev = 0x00; return 0; }