From 17a5333bf7cf7a86de61a9468e355cc7dcf8a004 Mon Sep 17 00:00:00 2001 From: Eric Wild Date: Tue, 28 Jul 2026 17:42:32 +0200 Subject: [PATCH] contrib/flash.py: fix typos Python has no versoin nor printf. Change-Id: I4fd4d2592b44b3ae827e00ae73d8c451aa2ec18f --- contrib/flash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/flash.py b/contrib/flash.py index 01fe7c9a..393bdf6d 100755 --- a/contrib/flash.py +++ b/contrib/flash.py @@ -110,12 +110,12 @@ for usb_device in usb_devices: if serial: version = "< 0.5.1.45-ac7e" else: - versoin = "< 0.5.1.45-ac7e" + version = "< 0.5.1.45-ac7e" else: if serial: version = "< 0.5.1.37-ede8" else: - versoin = "< 0.5.1.34-e026" + version = "< 0.5.1.34-e026" print("device firmware version: " + version) # flash latest firmware if to_flash == "list": # we just want to list the devices, not flash them @@ -156,7 +156,7 @@ for usb_device in usb_devices: dfu_result = subprocess.run(["dfu-util", "--device", hex(definition.usb_vendor_id) + ":" + hex(definition.usb_product_id), "--path", usb_path, "--cfg", "1", "--alt", "1", "--reset", "--download", dl_path]) os.remove(dl_path) if 0 != dfu_result.returncode: - printf("flashing firmware using dfu-util failed. ensure dfu-util is installed and you have the permissions to access this USB device") + print("flashing firmware using dfu-util failed. ensure dfu-util is installed and you have the permissions to access this USB device") continue updated_nb += 1