mirror of
https://github.com/bitbank2/image_to_c.git
synced 2025-11-04 14:49:59 +08:00
Added non-Arduino fix to nullify PROGMEM keyword
This commit is contained in:
parent
6adac3df24
commit
9947d471df
2
main.c
2
main.c
@ -661,6 +661,8 @@ int main(int argc, char *argv[])
|
|||||||
if (szInfo[0])
|
if (szInfo[0])
|
||||||
printf("%s", szInfo);
|
printf("%s", szInfo);
|
||||||
FixName(szLeaf); // remove unusable characters
|
FixName(szLeaf); // remove unusable characters
|
||||||
|
printf("// for non-Arduino builds...\n");
|
||||||
|
printf("#ifndef PROGMEM\n#define PROGMEM\n#endif\n");
|
||||||
printf("const uint8_t %s[] PROGMEM = {\n", szLeaf); // start of data array
|
printf("const uint8_t %s[] PROGMEM = {\n", szLeaf); // start of data array
|
||||||
fseek(ihandle, 0, SEEK_SET);
|
fseek(ihandle, 0, SEEK_SET);
|
||||||
while (iSize)
|
while (iSize)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user