]> git.sur5r.net Git - openocd/commitdiff
zy1000: fix keep_alive() bug
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 4 May 2010 10:28:05 +0000 (12:28 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 5 May 2010 13:24:24 +0000 (15:24 +0200)
introduced in latest commit. Should have held off merging
that commit. Sigh....

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/jtag/zy1000/zy1000.c

index 092e3cd25ce013132b0c1a50f0b469556b6c9b2e..2fac1767ad7ff449b7c5f32158427e1c75e3aefe 100644 (file)
@@ -205,6 +205,8 @@ void zy1000_reset(int trst, int srst)
 
                        total = timeval_ms() - start;
 
+                       keep_alive();
+
                        if (total > 5000)
                        {
                                LOG_ERROR("SRST took too long to deassert: %dms", (int)total);