- Tue Jul 04, 2006 9:40 pm
#15324
I'm new at OpenOCD so please forgive me if this is the wrong place to submit bugs/patches.
I think the following code at line 372 of the ftd2xx.c file is incorrect:
BUFFER_ADD = (num_bytes-2) & 0xff;
BUFFER_ADD = (num_bytes >> 8) & 0xff;
I believe the second line should be ((num_bytes-2) >> 8) & 0xFF
This will only make a difference if num_bytes is near a multiple of 256, but...it could happen.
I think the following code at line 372 of the ftd2xx.c file is incorrect:
BUFFER_ADD = (num_bytes-2) & 0xff;
BUFFER_ADD = (num_bytes >> 8) & 0xff;
I believe the second line should be ((num_bytes-2) >> 8) & 0xFF
This will only make a difference if num_bytes is near a multiple of 256, but...it could happen.