]> git.sur5r.net Git - openocd/commitdiff
flash: startup.tcl: do not disable polling when not exiting
authorPaul Fertser <fercerpav@gmail.com>
Fri, 6 Oct 2017 16:39:21 +0000 (19:39 +0300)
committerTomas Vanek <vanekt@fbl.cz>
Sat, 13 Jan 2018 08:17:21 +0000 (08:17 +0000)
Change-Id: I31b8a8b4519d65d6587207a71eb08dcee8ddd6fd
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/4243
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
src/flash/startup.tcl

index fbb8d8ee498249538aed598e186e31a1404479a3..ed905e9424af034f6c9c7300f994eb50dbb88b57 100644 (file)
@@ -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
                }