From: Keith Packard Date: Wed, 5 May 2010 08:32:46 +0000 (-0700) Subject: Use ao_delay to sleep for 2 seconds instead of trying ao_sleep X-Git-Tag: debian/0.6+190+g8b6767e~1 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=8b6767e24a88482dbd3d4c4c969a0be08917d22b;ds=sidebyside 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. --- 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); }