mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 06:33:33 +08:00
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: http://svn.code.sf.net/p/nuttx/code/trunk@5465 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user