From c652f44ca3e7fde093f1fd1ead8228aca4dcd9c4 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Fri, 6 Oct 2017 19:39:21 +0300 Subject: [PATCH] flash: startup.tcl: do not disable polling when not exiting Change-Id: I31b8a8b4519d65d6587207a71eb08dcee8ddd6fd Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/4243 Reviewed-by: Tomas Vanek Tested-by: jenkins --- src/flash/startup.tcl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl index fbb8d8ee..ed905e94 100644 --- a/src/flash/startup.tcl +++ b/src/flash/startup.tcl @@ -62,8 +62,10 @@ proc program {filename args} { if {[info exists reset]} { # reset target if requested - # also disable target polling, we are shutting down anyway - poll off + if {$exit == 1} { + # also disable target polling, we are shutting down anyway + poll off + } echo "** Resetting Target **" reset run } -- 2.39.5