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")
|
||||
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:
|
||||
print(response)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue