summaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 2c88a6fd..868241eb 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1784,6 +1784,12 @@ static int handle_target(void *priv)
Jim_Interp *interp = (Jim_Interp *)priv;
int retval = ERROR_OK;
+ if (!is_jtag_poll_safe())
+ {
+ /* polling is disabled currently */
+ return ERROR_OK;
+ }
+
/* we do not want to recurse here... */
static int recursive = 0;
if (! recursive)