using uint8_t

This commit is contained in:
Devaev Maxim
2020-12-09 19:06:14 +03:00
parent f19ab11f76
commit 9e1bf2fdea
17 changed files with 72 additions and 60 deletions

View File

@@ -85,7 +85,7 @@ def main() -> None:
text += f"const unsigned {name}_JPEG_WIDTH = {width};\n"
text += f"const unsigned {name}_JPEG_HEIGHT = {height};\n\n"
text += f"const size_t {name}_JPEG_DATA_SIZE = {len(jpeg_data)};\n"
text += f"const unsigned char {name}_JPEG_DATA[] = {jpeg_data_text};\n"
text += f"const uint8_t {name}_JPEG_DATA[] = {jpeg_data_text};\n"
with open(c_path, "w") as c_file:
c_file.write(text)