Re: [PATCH -ac] Panicking in morse code

Thorsten Kranzkowski (dl8bcu@dl8bcu.de)
Fri, 19 Jul 2002 16:36:55 +0000


On Fri, Jul 19, 2002 at 01:13:00AM -0400, Andrew Rodland wrote:
> I was researching panic_blink() for someone who needed a little help,
> when I noticed the comment above the function definition, not being the
> kind to step down from a challenge (unless it's just really hard), I
> decided to write morse code output code.

nice idea :)

> diff -u -r -d linux.old/drivers/char/pc_keyb.c linux/drivers/char/pc_keyb.c
> --- linux.old/drivers/char/pc_keyb.c Fri Jul 19 00:59:04 2002
> +++ linux/drivers/char/pc_keyb.c Fri Jul 19 01:00:34 2002
> @@ -1244,37 +1244,126 @@
> #endif /* CONFIG_PSMOUSE */

[...]

> +static const char * morse[] = {
> + ".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", /* A-H */
> + "..", ".---.", "-.-", ".-..", "--", "-.", "---", ".--.", /* I-P */

This should read:

"..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", /* I-P */

i.e. there's a dot too much :)

> + "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", /* Q-X */
> + "-.--", "--..", /* Y-Z */
> + "-----", ".----", "..---", "...--", "....-", /* 0-4 */
> + ".....", "-....", "--...", "---..", "----." /* 5-9 */
> +};

73, Thorsten

-- 
| Thorsten Kranzkowski        Internet: dl8bcu@dl8bcu.de                      |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/