Re: mkbd(4) delay fix
"Matt Fleming" <[email protected]> Sun, 19 Oct 2008 15:13:09 +0100
| Newsgroups | gmane.os.netbsd.ports.dreamcast,gmane.os.netbsd.ports.sh3 |
|---|---|
| Message-ID | <[email protected]> |
2008/10/19 Matt Fleming <[email protected]>: > Hi, > > attached is a patch that allows my dreamcast keyboard to work Hmm.. I've inlined the patch here (note: it _will_ be whitespace damaged) to ease review. Matt Index: sys/arch/dreamcast/dev/maple/mkbd.c =================================================================== RCS file: /cvsroot/src/sys/arch/dreamcast/dev/maple/mkbd.c,v retrieving revision 1.25 diff -u -r1.25 mkbd.c --- sys/arch/dreamcast/dev/maple/mkbd.c 17 Oct 2007 19:54:10 -0000 1.25 +++ sys/arch/dreamcast/dev/maple/mkbd.c 19 Oct 2008 13:49:12 -0000 @@ -308,8 +308,7 @@ while (polledkey == -1) { if (mkbd_console_softc != NULL && mkbd_console_softc->sc_parent != NULL) { - int t; - for (t = 0; t < 1000000; t++); + delay(30); maple_run_polling(mkbd_console_softc->sc_parent); } }