Merge pull request #30 from philcrump/phil-fix-py36

firmware-update.py: Use py3.6 compatible arguments to subprocess.run()
andrejusk/bday
Marek Ventur 2018-08-30 18:06:09 +01:00 committed by GitHub
commit 7b1b93e02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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