zy1000: fix keep_alive() bug
[fw/openocd] / 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);