diff options
author | Yilin Yang <kerker@google.com> | 2020-11-17 09:52:30 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-17 16:57:35 +0000 |
commit | d0d3284cc2c8522fd7bc998e71259191067b87d5 (patch) | |
tree | c768459710330cb7f38ccef4758364ea332f1fdb /docs | |
parent | 51484d77533e60cdfe21902eaf759c3be14df40a (diff) | |
download | chrome-ec-d0d3284cc2c8522fd7bc998e71259191067b87d5.tar.gz |
fw_update: Pass bytes into `wr_command` function
In `wr_command` function, we use `bytearray` to wrap the bytes argument.
However, if we pass a `str` type to `bytearray` constructor, we need to
specify the encoding.
In this case, we need to use `bytes` here.
BUG=b:172978731
BRANCH=master
TEST=1. cros_workon --host start hdctools ec-devutils
2. sudo emerge hdctools ec-devutils
3. The fix applies into chroot
TEST=ODM verifies in their side
Signed-off-by: kerker <kerker@chromium.org>
Change-Id: I57609c36e639cd6bd116b6f2f3a1baff02312070
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2543567
Tested-by: Henry Sun <henrysun@google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Henry Sun <henrysun@google.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions