diff options
Diffstat (limited to 'miscutils/beep.c')
-rw-r--r-- | miscutils/beep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/beep.c b/miscutils/beep.c index 1669332..7c60aed 100644 --- a/miscutils/beep.c +++ b/miscutils/beep.c @@ -114,10 +114,10 @@ int beep_main(int argc, char **argv) while (rep) { //bb_error_msg("rep[%d] freq=%d, length=%d, delay=%d", rep, freq, length, delay); xioctl(speaker, KIOCSOUND, (void*)(uintptr_t)tickrate_div_freq); - usleep(1000 * length); + msleep(length); ioctl(speaker, KIOCSOUND, (void*)0); if (--rep) - usleep(1000 * delay); + msleep(delay); } } |