aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/flash/startup.tcl6
1 files 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
}