From: Øyvind H. <go...@us...> - 2010-03-25 20:47:41
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via ed6756fb23fc7383ec7a4a831a8750a6cf5eaa4e (commit) from 010492a1ede305d2375602afa26f50281fea3e2f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit ed6756fb23fc7383ec7a4a831a8750a6cf5eaa4e Author: Ãyvind Harboe <oyv...@zy...> Date: Thu Mar 25 13:06:23 2010 +0100 target: fix poll off I don't know when "poll off" broke, but "poll off" didn't stop background polling of target. The polling status flag simply wasn't checked in the handle_target timer callback. All target polling(including power/reset state) is now stopped upon "poll off". Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/target/target.c b/src/target/target.c index 2c88a6f..868241e 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) ----------------------------------------------------------------------- Summary of changes: src/target/target.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) hooks/post-receive -- Main OpenOCD repository |