From 0df2c085a10571e69181923dff9084ff5534e9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20M=C3=B8ller?= <37707273+LupusE@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:43:18 +0200 Subject: [PATCH] Fix output overflow at converting to hpp. Function is untouched. (#2320) --- firmware/tools/bitmap_tools/pp_png2hpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/tools/bitmap_tools/pp_png2hpp.py b/firmware/tools/bitmap_tools/pp_png2hpp.py index 729c659e3..e8f024396 100755 --- a/firmware/tools/bitmap_tools/pp_png2hpp.py +++ b/firmware/tools/bitmap_tools/pp_png2hpp.py @@ -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. @@ -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()