Date: Wed, 16 Jun 2004 04:44:36 GMT From: "Jukka A. Ukkonen" <jau@iki.fi> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/67995: Morse plays beeps 10 times faster than it should. Message-ID: <200406160444.i5G4iaGe054732@www.freebsd.org> Resent-Message-ID: <200406160450.i5G4oJLW081758@freefall.freebsd.org>
index | next in thread | raw e-mail
>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@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:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406160444.i5G4iaGe054732>
