Skip to content

Commit

Permalink
Fix output overflow at converting to hpp. Function is untouched. (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
LupusE authored Oct 24, 2024
1 parent a4c2e15 commit 0df2c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/tools/bitmap_tools/pp_png2hpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def pp_write_bitmaphpp(pngicons_path, hpp_outpath):
with open(hpp_outpath, "w", encoding="utf-8") as fd:
fd.writelines(out_file)

print("Find your bitmap.hpp at", out_file)
print("Find your bitmap.hpp at", hpp_outpath)


### Convert from a bitmap.hpp file one or all icons in png.
Expand Down Expand Up @@ -232,6 +232,6 @@ def convert_hpp(icon_name,bitmap_array,iconsize_str,png_outdir):
graphics_path = os.path.join(args.graphics, '')
else:
graphics_path = os.path.join(os.getcwd(),"graphics", '')
print("Path", graphics_path, "hpp", args.hpp)
print("From path", graphics_path, "to file", args.hpp)
pp_write_bitmaphpp(graphics_path, args.hpp)
sys.exit()

0 comments on commit 0df2c08

Please sign in to comment.