mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
kbdcontrol: correct bell frequency for vt(4)
Do the `1193182 / pitch` hack only for sc(4). PR: 281713 Reported by: Rudolf Polzer Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46803
This commit is contained in:
parent
79679a18ea
commit
f65c19a242
@ -1038,8 +1038,10 @@ badopt:
|
||||
warnx("argument to -b must be duration.pitch or [quiet.]visual|normal|off");
|
||||
return;
|
||||
}
|
||||
if (pitch != 0)
|
||||
pitch = 1193182 / pitch; /* in Hz */
|
||||
if (!is_vt4()) {
|
||||
if (pitch != 0)
|
||||
pitch = 1193182 / pitch; /* in Hz */
|
||||
}
|
||||
duration /= 10; /* in 10 m sec */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user