summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-12-03 17:41:39 -0800
committerZachary T Welch <zw@superlucidity.net>2009-12-04 03:29:15 -0800
commiteae56d27c3892188560918526710d44d147b0c8d (patch)
treec659bd256759bea9de07cccd02e062195cbbf954
parenta535d2f64337f39902aebd1a5e9488a85f542b7f (diff)
downloadopenocd+libswd-eae56d27c3892188560918526710d44d147b0c8d.tar.gz
openocd+libswd-eae56d27c3892188560918526710d44d147b0c8d.tar.bz2
openocd+libswd-eae56d27c3892188560918526710d44d147b0c8d.tar.xz
openocd+libswd-eae56d27c3892188560918526710d44d147b0c8d.zip
allow 'jtag init' to be run in any mode
Help alleviate further potential problems with interactive startup.
-rw-r--r--src/jtag/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index cc890801..81bafbb6 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -828,7 +828,7 @@ COMMAND_HANDLER(handle_jtag_init_command)
static const struct command_registration jtag_subcommand_handlers[] = {
{
.name = "init",
- .mode = COMMAND_CONFIG,
+ .mode = COMMAND_ANY,
.handler = &handle_jtag_init_command,
.help = "initialize jtag scan chain",
},