From 6c5a866f8cb3fbf3c67095170245d536f68a2f4f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Sep 2024 07:03:36 +1000 Subject: [PATCH] allow for spaces in custom bootloader filename --- esc_unlocker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esc_unlocker.py b/esc_unlocker.py index cee0efe..376e1bb 100755 --- a/esc_unlocker.py +++ b/esc_unlocker.py @@ -147,7 +147,7 @@ def run_openocd(): openocd = get_openocd() process = subprocess.Popen([openocd, - '-c', "set BOOTLOADER %s" % bootloader, + '-c', 'set BOOTLOADER "%s"' % bootloader, '--file', probe_file, '--file', config_file], stdout=subprocess.PIPE,