From: zwelch Date: Tue, 9 Jun 2009 04:39:54 +0000 (+0000) Subject: Remove accidental duplicate of hasKHz; fixes pre-init speed setup. X-Git-Tag: v0.2.0~361 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e081cf401efc9235ccd1ca4c7665b5f5dddc1cd;p=openocd 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 --- 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, ...) */