]> git.gag.com Git - fw/openocd/blobdiff - src/jtag/startup.tcl
tcl: introduce using_(jtag|swd|hla) helpers and use them in reset handler
[fw/openocd] / src / jtag / startup.tcl
index 4153118c3a68ad2b8c0ecbce4ead0bfc485d8aff..94590e13389807fa98d8867fe3825b320c2b9056 100644 (file)
@@ -21,7 +21,9 @@ proc jtag_init {} {
 # startup (at OpenOCD server startup, when JTAG may not yet work); and
 # potentially more (for reset types like cold, warm, etc)
 proc init_reset { mode } {
-       jtag arp_init-reset
+       if {[using_jtag]} {
+               jtag arp_init-reset
+       }
 }
 
 #########