Skip to content
Snippets Groups Projects
Commit c8fc3b9c authored by patacongo's avatar patacongo
Browse files

Implement encoding the usbhost HID keyboard driver; configre olimex-lpc1766stk...

Implement encoding the usbhost HID keyboard driver; configre olimex-lpc1766stk HID keyboard configuration to use the kconfig-frontends tool

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5461 42af7a65-404d-4744-a932-0658087f49c3
parent e2bf277b
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ int hidkbd_main(int argc, char *argv[])
printf("Device %s opened\n", CONFIG_EXAMPLES_HIDKBD_DEVNAME);
fflush(stdout);
/* Loop until there is a read failure */
/* Loop until there is a read failure (or EOF?) */
do
{
......@@ -220,7 +220,7 @@ int hidkbd_main(int argc, char *argv[])
(void)write(1, buffer, nbytes);
}
}
while (nbytes >= 0);
while (nbytes > 0);
printf("Closing device %s: %d\n", CONFIG_EXAMPLES_HIDKBD_DEVNAME, (int)nbytes);
fflush(stdout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment