mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
fix double 'init' regression
To prevent regression in the behavior of 'init', we allow it to run in any mode. If provided with -c init and with -c noinit, then the second init at startup caused a spurious mode failure. Let 'init' handle it.
This commit is contained in:
@@ -171,7 +171,7 @@ static const struct command_registration openocd_command_handlers[] = {
|
||||
{
|
||||
.name = "init",
|
||||
.handler = &handle_init_command,
|
||||
.mode = COMMAND_CONFIG,
|
||||
.mode = COMMAND_ANY,
|
||||
.help = "Initializes configured targets and servers. "
|
||||
"Changes command mode from CONFIG to EXEC. "
|
||||
"Unless 'noinit' is called, this command is "
|
||||
|
||||
Reference in New Issue
Block a user