mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-27 19:56:07 +00:00
Merge pull request #72 from slimer37/patch-1
Fix minor errors when using Arduino single bitmap
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user