remote/jtag_tdi_tdo_seq: Fix wrong bitmask calculation.

This commit is contained in:
Uwe Bonnes 2021-08-13 19:45:41 +02:00 committed by UweBonnes
parent c7bc4b6a5d
commit 0d78331149
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ void remotePacketProcessJTAG(uint8_t i, char *packet)
jtag_proc.jtagtap_tdi_tdo_seq((void *)&DO, (packet[1]==REMOTE_TDITDO_TMS), (void *)&DI, ticks);
/* Mask extra bits on return value... */
DO &= (1LL << (ticks + 1)) - 1;
if (ticks < 64)
DO &= (1LL << ticks) - 1;
_respond(REMOTE_RESP_OK, DO);
}