[openfirmware] r1605 - dev/usb2/device/keyboard

svn at openfirmware.info svn at openfirmware.info
Tue Dec 15 01:10:05 CET 2009


Author: wmb
Date: 2009-12-15 01:10:05 +0100 (Tue, 15 Dec 2009)
New Revision: 1605

Modified:
   dev/usb2/device/keyboard/kbd.fth
Log:
USB keyboard - clarified error messages and suppressed the "Failed
to set idle" message since it is not critical.


Modified: dev/usb2/device/keyboard/kbd.fth
===================================================================
--- dev/usb2/device/keyboard/kbd.fth	2009-12-15 00:01:16 UTC (rev 1604)
+++ dev/usb2/device/keyboard/kbd.fth	2009-12-15 00:10:05 UTC (rev 1605)
@@ -379,9 +379,11 @@
    null-entry /qe erase
    key-state /key-state erase
    device set-target
-   configuration set-config  if  ." Failed to set keyboard configuration" cr  then
-   set-boot-protocol         if  ." Failed to set boot protocol" cr  then
-   idle-rate set-idle        if  ." Failed to set idle" cr  then
+   configuration set-config  if  ." Failed to set USB keyboard configuration" cr  then
+   set-boot-protocol         if  ." Failed to set USB keyboard boot protocol" cr  then
+   \ Some USB keyboards don't implement set-idle properly, and it's not critical,
+   \ so we suppress the message to avoid confusing the user
+   idle-rate set-idle   drop  \  if  ." Failed to set USB keyboard idle" cr  then
    0 set-leds
    free-kbd-buf
 ;




More information about the openfirmware mailing list