firmware-update.py: Use py3.6 compatible arguments to subprocess.run()

andrejusk/bday
Phil Crump 2018-08-30 18:02:49 +01:00
parent 1452c37375
commit 13dec9e50e
1 changed files with 1 additions and 1 deletions

View File

@ -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