Don't try reading device params in bad USB modes.
authorKarl Palsson <karlp@tweak.net.au>
Mon, 14 Nov 2011 02:25:31 +0000 (02:25 +0000)
committerKarl Palsson <karlp@tweak.net.au>
Mon, 14 Nov 2011 02:25:31 +0000 (02:25 +0000)
commit77f2d8b76c218e9edceaba71c6cc4f8724da49a1
tree4021a3cb59e48ae05c6e5640e5958f9473cdeda0
parent3c6f2f5231a11bc73e3bce0003318d0f87614ad1
Don't try reading device params in bad USB modes.

You cannot read device params when we're not in debug mode and trying to will fill the USB buffer with garbage, and you will have to
unplug and replug and start again.  (which will fail, because, you're in the
wrong mode... :)
src/stlink-sg.c