diff --git a/js/script.js b/js/script.js index 9a62e28..0d27b4d 100644 --- a/js/script.js +++ b/js/script.js @@ -936,7 +936,7 @@ function generateOutputString() { outputString = outputString.replace(/,\s*$/, ''); outputString = `const ${getImageType()} ${ - +getIdentifier() + getIdentifier() } [] PROGMEM = {` + `\n${outputString}\n};`; break; @@ -948,7 +948,7 @@ function generateOutputString() { images.each((image) => { code = imageToString(image); code = `\t${code.split('\n').join('\n\t')}\n`; - comment = `\t// '${image.glyph}, ${image.canvas.width}x${image.canvas.height}px\n`; + comment = `\t// '${image.glyph}', ${image.canvas.width}x${image.canvas.height}px\n`; outputString += comment + code; if (image.glyph.length === 1) { useGlyphs++; @@ -1060,6 +1060,7 @@ function updateDrawMode(elm) { if (conversionFunction) { settings.conversionFunction = conversionFunction; } + updateAllImages(); } // Updates Arduino code check-box