From: Paul Fertser Date: Fri, 6 Oct 2017 16:39:21 +0000 (+0300) Subject: flash: startup.tcl: do not disable polling when not exiting X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c652f44ca3e7fde093f1fd1ead8228aca4dcd9c4;p=openocd 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 --- 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 }