diff options
author | Keith Packard <keithp@keithp.com> | 2010-05-05 01:32:46 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-05-05 01:33:25 -0700 |
commit | 8b6767e24a88482dbd3d4c4c969a0be08917d22b (patch) | |
tree | 7c33ed9b3ebb6a2b382ec42e20e4a0b6192af703 /src | |
parent | e6bb80975fde20928a830170f0821d59a8c72690 (diff) |
Use ao_delay to sleep for 2 seconds instead of trying ao_sleep
ao_sleep doesn't delay for a specified time interval as much as one
might want it to.
Diffstat (limited to 'src')
-rw-r--r-- | src/ao_cmd.c | 2 | ||||
-rw-r--r-- | src/ao_reboot.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_cmd.c b/src/ao_cmd.c index b6d2b886..4a68fba4 100644 --- a/src/ao_cmd.c +++ b/src/ao_cmd.c @@ -208,7 +208,7 @@ ao_reboot(void) if (!ao_match_word("eboot")) return; WDCTL = WDCTL_EN | WDCTL_MODE_WATCHDOG | WDCTL_INT_64; - ao_sleep(AO_SEC_TO_TICKS(2)); + ao_delay(AO_SEC_TO_TICKS(2)); ao_panic(AO_PANIC_REBOOT); } diff --git a/src/ao_reboot.c b/src/ao_reboot.c index 82ea32e0..8c47b893 100644 --- a/src/ao_reboot.c +++ b/src/ao_reboot.c @@ -23,6 +23,6 @@ void ao_reboot(void) { WDCTL = WDCTL_EN | WDCTL_MODE_WATCHDOG | WDCTL_INT_32768; - ao_sleep(AO_SEC_TO_TICKS(2)); + ao_delay(AO_SEC_TO_TICKS(2)); ao_panic(AO_PANIC_REBOOT); } |