From e16521d3a16778fdacb62f97611a3b03baa65edc Mon Sep 17 00:00:00 2001 From: Tomek CEDRO Date: Tue, 21 Jun 2011 00:37:00 +0200 Subject: INTERFACE/BITBANG: Fixed strnstr issue, command is now available only after 'init' as it should be, replaced hardcode with define. --- src/interface/bitbang.c | 12 ++++++------ src/interface/bitbang.h | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/interface/bitbang.c b/src/interface/bitbang.c index 443e9aea..63c9ca1e 100644 --- a/src/interface/bitbang.c +++ b/src/interface/bitbang.c @@ -55,7 +55,7 @@ COMMAND_HANDLER(handle_bitbang_command) LOG_DEBUG("%s", __func__); if (!jtag_interface){ - LOG_ERROR("You need to setup interface first!"); + LOG_ERROR("You need to select interface first!"); return ERROR_FAIL; } @@ -77,17 +77,17 @@ COMMAND_HANDLER(handle_bitbang_command) static oocd_interface_signal_t *sig; static unsigned int pn; static int retval; - static char *mark, *signame, *sigval, pcmd[45]; + static char *mark, *signame, *sigval, pcmd[OOCD_BITBANG_PARAM_CMD_MAX_LEN]; // Iterate through list of command parameters for (pn=0;pn