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
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
}