This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 5c4da9520 apps/examples: Remove casting from hidcombo
5c4da9520 is described below
commit 5c4da95207dd0bdb1b8487a1a9c4109f3b075827
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Sun Oct 25 13:37:48 2026 -0300
apps/examples: Remove casting from hidcombo
This some small fixes.
Signed-off-by: Alan C. Assis <[email protected]>
---
examples/hidcombo/hidcombo_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/hidcombo/hidcombo_main.c
b/examples/hidcombo/hidcombo_main.c
index 2edc39458..57e8fb006 100644
--- a/examples/hidcombo/hidcombo_main.c
+++ b/examples/hidcombo/hidcombo_main.c
@@ -140,10 +140,10 @@ int main(int argc, FAR char *argv[])
{
nkeys++;
printf("KEY %-15s code=0x%02lx '%c'\n",
- hidcombo_keytype(key.type), (unsigned long)key.code,
+ hidcombo_keytype(key.type), key.code,
key.type <= KEYBOARD_RELEASE &&
key.code >= 0x20 && key.code < 0x7f ?
- (int)key.code : '.');
+ key.code : '.');
}
}