diff options
author | Yi Chou <yich@google.com> | 2022-06-03 05:46:25 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-03 08:53:40 +0000 |
commit | 83c5bf9f39cdbc38ac5fa230f4194e935e0869c5 (patch) | |
tree | 5148a0305517b378e06de35f86794689a0ccc160 | |
parent | bf09eba02420f42e7a42a5e922c0e1409c615cbd (diff) | |
download | chrome-ec-83c5bf9f39cdbc38ac5fa230f4194e935e0869c5.tar.gz |
servo_updater: Add retries for flash2
A workaround for the remaining character in the USB buffer.
BRANCH=None
BUG=b:232156962
TEST=servo_updater -b servo_micro
Signed-off-by: Yi Chou <yich@google.com>
Change-Id: I0334172c0bc10d16201ff9c4d54d66c02ea283f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3688769
Reviewed-by: Brian Nemec <bnemec@google.com>
-rwxr-xr-x | extra/usb_updater/servo_updater.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py index 4dff264182..fa0d21670c 100755 --- a/extra/usb_updater/servo_updater.py +++ b/extra/usb_updater/servo_updater.py @@ -420,7 +420,7 @@ def main(): if vers == 2: flash(brdfile, serialno, binfile) elif vers == 6: - flash2(vidpid, serialno, binfile) + do_with_retries(flash2, vidpid, serialno, binfile) else: raise ServoUpdaterException("Can't detect updater version") @@ -439,7 +439,7 @@ def main(): if vers == 2: flash(brdfile, serialno, binfile) elif vers == 6: - flash2(vidpid, serialno, binfile) + do_with_retries(flash2, vidpid, serialno, binfile) else: raise ServoUpdaterException("Can't detect updater version") |