summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-05-05 01:32:46 -0700
committerKeith Packard <keithp@keithp.com>2010-05-05 01:33:25 -0700
commit8b6767e24a88482dbd3d4c4c969a0be08917d22b (patch)
tree7c33ed9b3ebb6a2b382ec42e20e4a0b6192af703
parente6bb80975fde20928a830170f0821d59a8c72690 (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.
-rw-r--r--src/ao_cmd.c2
-rw-r--r--src/ao_reboot.c2
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);
}