From 1d978db9e6ef9657961a230060ffc5891df23763 Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Tue, 20 May 2025 02:16:28 +0200 Subject: [PATCH] Skip unnecessary disable() call --- src/urclock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/urclock.c b/src/urclock.c index 4abfd572..c29a2090 100644 --- a/src/urclock.c +++ b/src/urclock.c @@ -2208,6 +2208,9 @@ static int urclock_initialize(const PROGRAMMER *pgm, const AVRPART *p) { static void urclock_disable(const PROGRAMMER *pgm) { unsigned char buf[16]; + if(ur.urprotocol) + return; + buf[0] = Cmnd_STK_LEAVE_PROGMODE; buf[1] = Sync_CRC_EOP;