]> git.sur5r.net Git - openocd/commit
mpsse: check available buffer space even for discarded data scans
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Thu, 23 Aug 2012 21:28:10 +0000 (23:28 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Wed, 29 Aug 2012 06:31:39 +0000 (06:31 +0000)
commitd9a02fda075c466dd4a37785d886a4b1ee382242
tree0695c6d41a3fbf645b1bc6b165b3595769c70108
parentd7f5a00cdceb9b1d867a3738b859dab4182038da
mpsse: check available buffer space even for discarded data scans

When there's no data to scan in or out, we still use the clock data out
command and fill the buffer with zeroes, so make sure the buffer is
checked for available space.

Change-Id: Ia6005c40c81f7fdb89379f1b5023fe383184d210
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/793
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/jtag/drivers/mpsse.c