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:
parent
23f07d08e3
commit
de27ebfa83
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue