wait 100ms after application switch

This commit is contained in:
Olaf Rempel 2010-12-25 12:50:23 +01:00
parent 3acd88c11c
commit 7aa4456607

View File

@ -189,6 +189,9 @@ int twb_open(struct twiboot *twb)
return -1; return -1;
} }
/* wait for watchdog and startup time */
usleep(100000);
if (twb_read_version(twb)) { if (twb_read_version(twb)) {
fprintf(stderr, "failed to get bootloader version: %s\n", strerror(errno)); fprintf(stderr, "failed to get bootloader version: %s\n", strerror(errno));
twb_close(twb); twb_close(twb);