dirtyJtag: fix toggleClk call (TMS is high, TDI depends on last_bit)

This commit is contained in:
Gwenhael Goavec-Merou 2021-06-20 16:28:18 +02:00
parent 26f5dd3ee5
commit 8d20c09791
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ int DirtyJtag::writeTDI(uint8_t *tx, uint8_t *rx, uint32_t len, bool end)
}
else
{
if (toggleClk(SIG_TMS & val, SIG_TDI & val, 1))
if (toggleClk(SIG_TMS, last_bit, 1))
{
cerr << "writeTDI: last bit error" << endl;
return -EXIT_FAILURE;