From 8e081cf401efc9235ccd1ca4c7665b5f5dddc1cd Mon Sep 17 00:00:00 2001 From: zwelch Date: Tue, 9 Jun 2009 04:39:54 +0000 Subject: [PATCH] Remove accidental duplicate of hasKHz; fixes pre-init speed setup. git-svn-id: svn://svn.berlios.de/openocd/trunk@2151 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/core.c | 2 +- src/jtag/tcl.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jtag/core.c b/src/jtag/core.c index eee20119..1bcf7dc1 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -93,7 +93,7 @@ jtag_event_callback_t *jtag_event_callbacks; /* speed in kHz*/ static int speed_khz = 0; /* flag if the kHz speed was defined */ -static bool hasKHz = false; +bool hasKHz = false; struct jtag_interface_s *jtag = NULL; diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index c3344b83..04f45bd8 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -39,8 +39,7 @@ #include #endif -/* flag if the kHz speed was defined */ -static bool hasKHz = false; +extern bool hasKHz; /* jtag interfaces (parport, FTDI-USB, TI-USB, ...) */ -- 2.39.5