fix issue with missing .glyph variable

This commit is contained in:
javl
2026-08-14 15:16:35 +02:00
parent bbb44d6378
commit bd1969e0af
+1 -1
View File
@@ -915,7 +915,7 @@ function generateOutputString() {
const comment = `// '${image.glyph}', ${image.canvas.width}x${image.canvas.height}px\n`;
bytesUsed += code.split('\n').length * 16; // 16 bytes per line.
const varname = getIdentifier() + image.glyph.replace(/[^a-zA-Z0-9]/g, '_');
const varname = getIdentifier() + (image.glyph ? image.glyph.replace(/[^a-zA-Z0-9]/g, '_') : '');
varQuickArray.push(varname);
code = `${comment}const ${getImageType()} ${varname} [] PROGMEM = {\n${code}};\n`;
outputString += code;