javl / image2cpp

GNU General Public License v3.0
529 stars 156 forks source link

missing comma in generated string #24

Closed aleave closed 4 years ago

aleave commented 5 years ago

when I generate the code the last element in each row has a comma missing, e.g. here below comma missing after 0xfc

// 'bed', 16x9px 0x00, 0x00, 0x00, 0x34, 0x00, 0x34, 0x00, 0x04, 0x5f, 0xf4, 0x5f, 0xf4, 0x40, 0x04, 0x7f, 0xfc 0x40, 0x04

javl commented 5 years ago

Thanks. Haven't fixed this yet, but as a quick workaround you can select Arduino Code as output type and only select the bytes from the output.

javl commented 4 years ago

This should be fixed after my next push in a couple of minutes and only the last comma (which is unnecessary) will get removed, instead of every comma at the end of every line.