Fix infinite loop in jtagtap_tdi_tdo_seq
This commit is contained in:
parent
f10ccfd83e
commit
d42477ebc5
|
@ -112,12 +112,14 @@ void jtagtap_tdi_tdo_seq(uint8_t *DO, const uint8_t final_tms, const uint8_t *DI
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DO) {
|
if (DO) {
|
||||||
int i = 1;
|
uint64_t Dol;
|
||||||
while (ticks) {
|
int i = 8;
|
||||||
*DO = (uint8_t)remotehston(2,(char *)&construct[i]);
|
while (ticks > 0) {
|
||||||
DO++;
|
Dol = remotehston(8 , (char *)&construct[s - i]);
|
||||||
i += 2;
|
memcpy (DO, &Dol, (ticks + 7) / 8);
|
||||||
}
|
ticks -= 64;
|
||||||
|
i += 8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue