Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
V-USB should be updated to the latest version, so LCD2USB can be compiled with never GCC versions.
It not, make fails with:
In file included from usbdrv/usbdrv.c:12:0:
usbdrv/usbdrv.h:455:6: error: variable 'usbDescriptorDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorDevice[];
^
usbdrv/usbdrv.h:461:6: error: variable 'usbDescriptorConfiguration' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorConfiguration[];
^
usbdrv/usbdrv.h:467:6: error: variable 'usbDescriptorHidReport' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorHidReport[];
^
usbdrv/usbdrv.h:473:6: error: variable 'usbDescriptorString0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorString0[];
^
usbdrv/usbdrv.h:479:5: error: variable 'usbDescriptorStringVendor' must be const in order to be put into read-only section by means of 'attribute((progmem))'
int usbDescriptorStringVendor[];
^
usbdrv/usbdrv.h:485:5: error: variable 'usbDescriptorStringDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
int usbDescriptorStringDevice[];
^
usbdrv/usbdrv.h:491:5: error: variable 'usbDescriptorStringSerialNumber' must be const in order to be put into read-only section by means of 'attribute((progmem))'
int usbDescriptorStringSerialNumber[];
^
usbdrv/usbdrv.c:70:14: error: variable 'usbDescriptorString0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM char usbDescriptorString0[] = { /* language descriptor /
^
usbdrv/usbdrv.c:80:14: error: variable 'usbDescriptorStringVendor' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM int usbDescriptorStringVendor[] = {
^
usbdrv/usbdrv.c:89:14: error: variable 'usbDescriptorStringDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM int usbDescriptorStringDevice[] = {
^
usbdrv/usbdrv.c:111:14: error: variable 'usbDescriptorDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM char usbDescriptorDevice[] = { / USB device descriptor /
^
usbdrv/usbdrv.c:142:14: error: variable 'usbDescriptorConfiguration' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM char usbDescriptorConfiguration[] = { / USB configuration descriptor */