diff options
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | src/ao_cmd.c | 7 | 
2 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 27d56751..650aeffb 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ dnl  dnl Process this file with autoconf to create configure.  AC_PREREQ(2.57) -AC_INIT([altos], 1.0.1) +AC_INIT([altos], 1.0.2)  AC_CONFIG_SRCDIR([src/ao.h])  AM_INIT_AUTOMAKE([foreign dist-bzip2])  AM_MAINTAINER_MODE diff --git a/src/ao_cmd.c b/src/ao_cmd.c index 1442ebea..8037195a 100644 --- a/src/ao_cmd.c +++ b/src/ao_cmd.c @@ -208,6 +208,13 @@ ao_reboot(void)  	ao_cmd_white();  	if (!ao_match_word("eboot"))  		return; + +	/* Delay waiting for the packet master to be turned off +	 * so that we don't end up back in idle mode because we +	 * received a packet after boot. +	 */ +	flush(); +	ao_delay(AO_SEC_TO_TICKS(1));  	WDCTL = WDCTL_EN | WDCTL_MODE_WATCHDOG | WDCTL_INT_64;  	ao_delay(AO_SEC_TO_TICKS(2));  	ao_panic(AO_PANIC_REBOOT);  | 
