From e32ee9ec701e3a64099fb41547da69e97d210483 Mon Sep 17 00:00:00 2001 From: wahid shirdel <51923923+wahidshirdel@users.noreply.github.com> Date: Thu, 11 Jul 2024 20:22:37 +0330 Subject: [PATCH] Update img_to_array.py (#501) when the last part of the image generate in .h file it does not involve ";" at the end ,and will make error when we start make the project --- i2c/ssd1306_i2c/img_to_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i2c/ssd1306_i2c/img_to_array.py b/i2c/ssd1306_i2c/img_to_array.py index b90b40230..ee4b6c7a3 100755 --- a/i2c/ssd1306_i2c/img_to_array.py +++ b/i2c/ssd1306_i2c/img_to_array.py @@ -73,7 +73,7 @@ buffer.append(f'{out_byte:#04x}') buffer = ", ".join(buffer) -buffer_hex = f'static uint8_t {img_name}[] = {{{buffer}}}\n' +buffer_hex = f'static uint8_t {img_name}[] = {{{buffer}}};\n' with open(f'{img_name}.h', 'wt') as file: file.write(f'#define IMG_WIDTH {img_width}\n')