Skip to content

Commit

Permalink
Update img_to_array.py (#501)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wahidshirdel authored Jul 11, 2024
1 parent eca13ac commit e32ee9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i2c/ssd1306_i2c/img_to_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e32ee9e

Please sign in to comment.