misc/67995: Morse plays beeps 10 times faster than it should.
Jukka A. Ukkonen
jau at iki.fi
Wed Jun 16 04:50:21 GMT 2004
>Number: 67995
>Category: misc
>Synopsis: Morse plays beeps 10 times faster than it should.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 16 04:50:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Jukka A. Ukkonen
>Release: FreeBSD 4.10-STABLE
>Organization:
>Environment:
FreeBSD mjolnir 4.10-STABLE FreeBSD 4.10-STABLE #0: Tue Jun 15 16:28:00 EET DST 2004 jau at mjolnir:/usr/src/sys/compile/Mjolnir i386
>Description:
The morse program has a scaling problem while counting the proper
dot_clock (dot length) value. As a result the dot duration becomes only
1/10 of what it should be.
>How-To-Repeat:
morse -p whatever
You will hear only insane sqeeking.
Multiply the dot duration by 10 (add -w2 to the command) and your morse
comes out just fine.
>Fix:
Apply the patch below. (Tab characters have been preserved by
importing the patch via xcut and xclipboard.)
--- morse.c.orig Wed Jun 16 07:26:18 2004
+++ morse.c Wed Jun 16 07:28:32 2004
@@ -374,7 +374,7 @@
dot_clock = 1 / dot_clock; /* duration of a dot */
dot_clock = dot_clock / 2; /* dot_clock runs at twice */
/* the dot rate */
- dot_clock = dot_clock * 100; /* scale for ioctl */
+ dot_clock = dot_clock * 1000; /* scale for ioctl */
}
argc -= optind;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list