Skip to content

drivers/usbhost: Update usbhost_hidkbd.c #15917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StagiaireAbritek
Copy link

Summary

ESP32-S3

There were missing quotes for key "backspace" for scancodes. It caused an error in cmake. Maybe I'm doing something wrong because I never used an embedded system before, but I still wanted to share it. \177 -> '\177'. USB_ALLSCANCODES

Impact

Only only occurs when the config option all scan codes is enabled for hid devices. It prevents from doing the command make to deploy nuttx. (Sorry this is my first time doing C I don't know the terms)

Testing

BEFORE :

Register: nsh
Register: sh
CC: usbhost/usbhost_hidkbd.c usbhost/usbhost_hidkbd.c:620:26: error: stray '' in program
620 | '{', '}', '\t', \177, 'A', 'B', 'C', 'D', /* 0xb8-0xbf: {,},tab,backspace,A-D */
| ^
make[1]: *** [Makefile:109: usbhost_hidkbd.o] Error 1
make: *** [tools/LibTargets.mk:107: drivers/libdrivers.a] Error 2

AFTER:

no error

There were messing quotes for key "backspace" for scancodes. It caused an error in cmake. Maybe I'm doing something wrong because I never used an embedded system before, but I still wanted to share it.  \177 -> '\177'
@github-actions github-actions bot added Area: USB Size: XS The size of the change in this PR is very small labels Feb 27, 2025
@acassis
Copy link
Contributor

acassis commented Feb 27, 2025

Hi @StagiaireAbritek thank you for this fix!

Copy link
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update commit title to

drivers/usbhost: Update usbhost_hidkbd.c

@jerpelea jerpelea changed the title Update usbhost_hidkbd.c drivers/usbhost: Update usbhost_hidkbd.c Feb 28, 2025
@acassis
Copy link
Contributor

acassis commented Feb 28, 2025

@StagiaireAbritek please run: ./tools/checkpatch.sh -f drivers/usbhost/usbhost_hidkbd.c, seems like when you added ' ' it displaced the comments aligment

@acassis
Copy link
Contributor

acassis commented Mar 26, 2025

Hey @StagiaireAbritek are you around? Do you need help to make your patch pass in the github CI ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: USB Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants