diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2012-08-23 23:35:48 +0200 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2012-08-29 06:31:59 +0000 |
commit | 6055d952c3efd2e6b12924c5ec42407fff99b453 (patch) | |
tree | fbaa910a62824446f867692736801126c7e65446 /src/openocd.c | |
parent | d9a02fda075c466dd4a37785d886a4b1ee382242 (diff) |
ftdi: fix overflow if last field of a scan is empty
The last bit of a scan is clocked during TAP movement so it's necessary
for the last field to have at least one bit. Strip trailing empty fields
and make sure the TAP is not affected if there's nothing to scan. Clients
probably shouldn't add empty fields so add a debug message to be able to
track and fix them.
Change-Id: I27552568bc11146570b9b99ed8a1ae81b5fb2c50
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/794
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/openocd.c')
0 files changed, 0 insertions, 0 deletions