diff options
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/usb_updater/servo_updater.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py index f899e158bc..06c36f37b6 100755 --- a/extra/usb_updater/servo_updater.py +++ b/extra/usb_updater/servo_updater.py @@ -66,12 +66,12 @@ def flash2(vidpid, serialno, binfile): print(cmd) help_cmd = '%s --help' % tool with open('/dev/null') as devnull: - sanity_check = subprocess.call(help_cmd.split(), stdout=devnull, - stderr=devnull) - if sanity_check: + valid_check = subprocess.call(help_cmd.split(), stdout=devnull, + stderr=devnull) + if valid_check: raise ServoUpdaterException('%s exit with res = %d. Make sure the tool ' 'is available on the device.' % (help_cmd, - sanity_check)) + valid_check)) res = subprocess.call(cmd.split()) if res in (0, 1, 2): |