From a7ac4df252184bcd2944feb843e85a052eaee70b Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Tue, 20 Aug 2024 22:59:22 +1000 Subject: [PATCH] Update img2logo.py --- Bootup Logos/img2logo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bootup Logos/img2logo.py b/Bootup Logos/img2logo.py index 1660e4e..45f777c 100755 --- a/Bootup Logos/img2logo.py +++ b/Bootup Logos/img2logo.py @@ -4,6 +4,7 @@ from __future__ import division import argparse import copy import os, sys +from typing import Optional from intelhex import IntelHex from output_hex import HexOutput from output_dfu import DFUOutput @@ -243,7 +244,7 @@ def animated_image_to_bytes( def img2hex( input_filename, device_model_name: str, - merge_hex_file: str | None, + merge_hex_file: Optional[str], preview_filename=None, threshold=128, dither=False,