Skip to content

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

@physnoct

Description

@physnoct

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[] = {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions