Hoernchen has uploaded this change for review. (
https://gerrit.osmocom.org/c/simtrace2/+/43135?usp=email )
Change subject: contrib/flash.py: fix typos
......................................................................
contrib/flash.py: fix typos
Python has no versoin nor printf.
Change-Id: I4fd4d2592b44b3ae827e00ae73d8c451aa2ec18f
---
M contrib/flash.py
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/35/43135/1
diff --git a/contrib/flash.py b/contrib/flash.py
index 01fe7c9..393bdf6 100755
--- a/contrib/flash.py
+++ b/contrib/flash.py
@@ -110,12 +110,12 @@
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 @@
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
--
To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43135?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: I4fd4d2592b44b3ae827e00ae73d8c451aa2ec18f
Gerrit-Change-Number: 43135
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <[email protected]>