summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2021-02-17 11:30:16 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-17 21:23:33 +0000
commit844783bbd9e11ce936c78b03299197cc85adafd2 (patch)
treecf0cee134d91b39b7b2b84240f3ee3f5b89d380f
parent3b55614704171123332e6ce48f4248d93f5bef51 (diff)
downloadchrome-ec-844783bbd9e11ce936c78b03299197cc85adafd2.tar.gz
flash_jlink: Pythonify the ip check
BRANCH=none BUG=none TEST=./util/flash_jlink.py --ip '' --board=nucleo-h743zi --image ./build/nucleo-h743zi/ec.bin Change-Id: Ibe5ec4d64173c83be837bcd08143d57a1d354d15 Signed-off-by: Craig Hesling <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2701193 Reviewed-by: Tom Hughes <tomhughes@chromium.org>
-rwxr-xr-xutil/flash_jlink.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_jlink.py b/util/flash_jlink.py
index 5518dcbda3..b8422880a9 100755
--- a/util/flash_jlink.py
+++ b/util/flash_jlink.py
@@ -71,7 +71,7 @@ def flash(jlink_exe, ip, device, interface, cmd_file):
jlink_exe,
]
- if len(ip) > 0:
+ if ip:
cmd.extend(['-ip', ip])
cmd.extend([