From 7aa4456607c32a13794e440ef3e0e5e37481ede3 Mon Sep 17 00:00:00 2001 From: Olaf Rempel Date: Sat, 25 Dec 2010 12:50:23 +0100 Subject: [PATCH] wait 100ms after application switch --- linux/twb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux/twb.c b/linux/twb.c index f149fd2..2da46be 100644 --- a/linux/twb.c +++ b/linux/twb.c @@ -189,6 +189,9 @@ int twb_open(struct twiboot *twb) return -1; } + /* wait for watchdog and startup time */ + usleep(100000); + if (twb_read_version(twb)) { fprintf(stderr, "failed to get bootloader version: %s\n", strerror(errno)); twb_close(twb);