Skip to content
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

const missing in usbdrv.h and usbdrv.c #22

Open
physnoct opened this issue Nov 23, 2019 · 0 comments
Open

const missing in usbdrv.h and usbdrv.c #22

physnoct opened this issue Nov 23, 2019 · 0 comments

Comments

@physnoct
Copy link

Several messages like these appeared during compilation:
error: variable ‘usbDescriptorStringVendor’ must be const in order to be put into read-only section by means of ‘attribute((progmem))’
PROGMEM int usbDescriptorStringVendor[] = {

By adding 'const' to the definitions in usbdrv.h and usbdrv.c, the compilation completes normally, as shown below:
PROGMEM const int usbDescriptorStringVendor[] = {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant