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

Add board support at configs/zp214xpa for the The0.net ZP213X/4XPA board with...

Add board support at configs/zp214xpa for the The0.net ZP213X/4XPA board with the LPC2148; Add configurations sim/nxlines.  convert mcu123-lpc214x/nsh to use the kconfig-frontends.

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5465 42af7a65-404d-4744-a932-0658087f49c3
parent 42149b63
No related branches found
No related tags found
No related merge requests found
......@@ -177,12 +177,14 @@ static void hidkbd_decode(FAR char *buffer, ssize_t nbytes)
/* Decode the next thing from the buffer */
ret = kbd_decode((FAR struct lib_instream_s *)&kbdstream, &state, &ch);
if (ret == KBD_ERROR)
if (ret == KBD_ERROR) /* Error or end-of-file */
{
/* Break out when all of the data has been processed */
break;
}
/* Normal data? Or special key? */
/* Normal data? Or special key? Press? Or release? */
switch (ret)
{
......@@ -202,10 +204,7 @@ static void hidkbd_decode(FAR char *buffer, ssize_t nbytes)
printf("Special Release: %d\n", ch);
break;
case KBD_ERROR: /* Error or end-of-file */
printf("EOF: %d\n", ret);
break;
case KBD_ERROR: /* Error or end-of-file, already handled */
default:
printf("Unexpected: %d\n", ret);
break;
......
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