Duane Ellis has made highly non-trivial changes to both the target handling and comma...
[fw/openocd] / src / openocd.c
index 67d890ecd0d883b2a6d594e09de5667285bae28e..9abe3b3562166dee2ed45799b2d7d35a39143832 100644 (file)
@@ -118,7 +118,7 @@ int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, char **arg
        if (jtag_init(cmd_ctx) == ERROR_OK)
        {
                LOG_DEBUG("jtag init complete");
-               if (target_examine(cmd_ctx) == ERROR_OK)
+               if (target_examine() == ERROR_OK)
                {
                        LOG_DEBUG("jtag examine complete");
                }