mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
drivers/usbhost/usbhost_hidkbd.c: Fix keyboard debounce algorithm used when CONFIG_HIDKBD_NODEBOUNCE is undefined.
This commit is contained in:
committed by
Gregory Nutt
parent
b3ed4b95bf
commit
f745166bfd
@@ -1118,7 +1118,12 @@ static int usbhost_kbdpoll(int argc, char *argv[])
|
|||||||
|
|
||||||
if (rpt->key[i] != USBHID_KBDUSE_NONE
|
if (rpt->key[i] != USBHID_KBDUSE_NONE
|
||||||
#ifndef CONFIG_HIDKBD_NODEBOUNCE
|
#ifndef CONFIG_HIDKBD_NODEBOUNCE
|
||||||
&& rpt->key[i] != lastkey[i]
|
&& rpt->key[i] != lastkey[0]
|
||||||
|
&& rpt->key[i] != lastkey[1]
|
||||||
|
&& rpt->key[i] != lastkey[2]
|
||||||
|
&& rpt->key[i] != lastkey[3]
|
||||||
|
&& rpt->key[i] != lastkey[4]
|
||||||
|
&& rpt->key[i] != lastkey[5]
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user