From 9bba3165fb5a309f047fb4df0656632c67b939d7 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 1 Oct 2020 18:06:49 +0200 Subject: [PATCH] swdptap: Turnaround immediate after a reading with parity. Thanks to JojoS. Probably mostly cosmetic, but is keeps the device from driving SWDIO until the next commands. --- src/platforms/common/swdptap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/common/swdptap.c b/src/platforms/common/swdptap.c index d6e82d21..65f863ec 100644 --- a/src/platforms/common/swdptap.c +++ b/src/platforms/common/swdptap.c @@ -117,6 +117,8 @@ static bool swdptap_seq_in_parity(uint32_t *ret, int ticks) DEBUG("%d", (res & (1 << i)) ? 1 : 0); #endif *ret = res; + /* Terminate the read cycle now */ + swdptap_turnaround(SWDIO_STATUS_DRIVE); return (parity & 1); }