This is an automated email from Gerrit.

Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2693

-- gerrit

commit 08f8732304d97ab78759e1f142e879fce92af2d9
Author: Paul Fertser <[email protected]>
Date:   Fri Apr 3 07:55:50 2015 +0300

    jtag/startup.tcl: fix regression with autoselecting JTAG
    
    This regression was introduced with d90b86d8. "transport select" doesn't
    throw an error anymore and autoselects the first available transport on
    its own.
    
    Reported by moyix on IRC.
    
    Change-Id: I3f303c0372e915931cca4b28af450694abc1a63e
    Signed-off-by: Paul Fertser <[email protected]>

diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl
index 6f9c000..f9b8402 100644
--- a/src/jtag/startup.tcl
+++ b/src/jtag/startup.tcl
@@ -88,9 +88,8 @@ proc measure_clk {} {
 add_help_text measure_clk "Runs a test to measure the JTAG clk. Useful with 
RCLK / RTCK."
 
 proc default_to_jtag { f args } {
-       if [catch {transport select} current_transport] {
-               echo "Info : session transport was not selected, defaulting to 
JTAG"
-               transport select jtag
+       set current_transport [transport select]
+       if {$current_transport == "jtag"} {
                eval $f $args
        } {
                error "session transport is \"$current_transport\" but your 
config requires JTAG"

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to