mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
busybox: 1.16.0 beep fix
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
d63e78cddc
commit
bff5db81be
17
package/busybox/busybox-1.16.0-beep.patch
Normal file
17
package/busybox/busybox-1.16.0-beep.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff -urpN busybox-1.16.0/miscutils/beep.c busybox-1.16.0-beep/miscutils/beep.c
|
||||||
|
--- busybox-1.16.0/miscutils/beep.c 2010-01-25 01:59:38.000000000 +0100
|
||||||
|
+++ busybox-1.16.0-beep/miscutils/beep.c 2010-03-14 15:27:24.000000000 +0100
|
||||||
|
@@ -79,11 +79,11 @@ int beep_main(int argc, char **argv)
|
||||||
|
}
|
||||||
|
while (rep) {
|
||||||
|
//bb_info_msg("rep[%d] freq=%d, length=%d, delay=%d", rep, freq, length, delay);
|
||||||
|
- xioctl(speaker, KIOCSOUND, (void*)(long)tickrate_div_freq);
|
||||||
|
+ xioctl(speaker, KIOCSOUND, (void*)(uintptr_t)tickrate_div_freq);
|
||||||
|
usleep(1000 * length);
|
||||||
|
ioctl(speaker, KIOCSOUND, (void*)0);
|
||||||
|
if (--rep)
|
||||||
|
- usleep(delay);
|
||||||
|
+ usleep(1000 * delay);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user