diff options
Diffstat (limited to 'src/transport/transport.c')
-rw-r--r-- | src/transport/transport.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/transport.c b/src/transport/transport.c index 99d5f6a4..554fb42a 100644 --- a/src/transport/transport.c +++ b/src/transport/transport.c @@ -49,6 +49,9 @@ extern struct command_context *global_cmd_ctx; +//TC: Adding global here in order to set transport when initialized. +extern struct jtag_interface *jtag_interface; + /*-----------------------------------------------------------------------*/ @@ -266,6 +269,9 @@ COMMAND_HANDLER(handle_transport_init) return ERROR_FAIL; } + //TC: Transport needs to be set in jtag_interface structure. + //jtag_interface is still global, need to move it into context. + jtag_interface->transport = session_transport; return session_transport->init(CMD_CTX); } |