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.
This commit is contained in:
Uwe Bonnes 2020-10-01 18:06:49 +02:00 committed by UweBonnes
parent 4d18496a6f
commit 9bba3165fb
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}