flash: startup.tcl: do not disable polling when not exiting
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
This commit is contained in:
parent
b34e013965
commit
c652f44ca3
|
@ -62,8 +62,10 @@ proc program {filename args} {
|
||||||
|
|
||||||
if {[info exists reset]} {
|
if {[info exists reset]} {
|
||||||
# reset target if requested
|
# reset target if requested
|
||||||
|
if {$exit == 1} {
|
||||||
# also disable target polling, we are shutting down anyway
|
# also disable target polling, we are shutting down anyway
|
||||||
poll off
|
poll off
|
||||||
|
}
|
||||||
echo "** Resetting Target **"
|
echo "** Resetting Target **"
|
||||||
reset run
|
reset run
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue