use assert() for obscure check on illegal arguments upon trst being asserted while commands are queued
git-svn-id: svn://svn.berlios.de/openocd/trunk@2033 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
0c57bc8be2
commit
976f13d27b
|
@ -387,12 +387,7 @@ int jtag_call_event_callbacks(enum jtag_event event)
|
|||
|
||||
static void jtag_prelude1(void)
|
||||
{
|
||||
if (jtag_trst == 1)
|
||||
{
|
||||
LOG_WARNING("JTAG command queued, while TRST is low (TAP in reset)");
|
||||
jtag_error=ERROR_JTAG_TRST_ASSERTED;
|
||||
return;
|
||||
}
|
||||
assert(jtag_trst == 0);
|
||||
|
||||
if (cmd_queue_end_state == TAP_RESET)
|
||||
jtag_call_event_callbacks(JTAG_TRST_ASSERTED);
|
||||
|
|
Loading…
Reference in New Issue