firmware-update.py: Use py3.6 compatible arguments to subprocess.run()
parent
1452c37375
commit
13dec9e50e
|
@ -10,7 +10,7 @@ def firmware_update(verbose):
|
||||||
|
|
||||||
print("Hello - Welcome to the automated TiLDA Mk4 firmware updater")
|
print("Hello - Welcome to the automated TiLDA Mk4 firmware updater")
|
||||||
try:
|
try:
|
||||||
response = subprocess.run(["dfu-util", "--list"], capture_output=True)
|
response = subprocess.run(["dfu-util", "--list"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if response.returncode != 0:
|
if response.returncode != 0:
|
||||||
print(response)
|
print(response)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue