read target voltage first in vsllink
commit0b641dac717ffe1391cc53dc33ad78ba79a26d2c
authorsimon qian <simonqian.openocd@gmail.com>
Mon, 18 Jan 2010 07:37:15 +0000 (17 23:37 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 18 Jan 2010 07:37:15 +0000 (17 23:37 -0800)
treec721f664cb577fdb88c9a6073845ca4990dee2ff
parentdaa1ff3535c2dc1f6ae6da2b740cdf23f4f5f7a6
read target voltage first in vsllink

The very first command after init command should be "read target voltage".

This is a tweak for the Old Versaloon firmware.  Without this, in most
most cases, it works.   Under Ubuntu9.04, there is a chance that the USB
will fail.  The problem disappears if I read target voltage first.

For the lastest Versaloon firmware, it's OK.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/jtag/drivers/vsllink.c