diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-12-07 12:43:44 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-07 23:31:02 +0000 |
commit | c2d23bfae6a7904c8c7e0a4267a8bb3c1cf221af (patch) | |
tree | b784a33dbc8dfdcd6a3e1e837ed0f614f4aed983 | |
parent | bbbeff568e9fbe535808217988a0f3d1ca96441a (diff) | |
download | chrome-ec-c2d23bfae6a7904c8c7e0a4267a8bb3c1cf221af.tar.gz |
flash_ec: check for ccd in servo_type for is_ccd
All ccd servos contain "ccd" in the servo_type. check for "ccd" instead
of checking for specific ccd types.
BUG=b:209445520
BRANCH=none
TEST=flash hatch with servo micro and ccd.
Change-Id: Ia272b6a86f03e780ccf7696d1174603defabfbda
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3321395
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
-rwxr-xr-x | util/flash_ec | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/flash_ec b/util/flash_ec index d92a002d01..b0ef53e0c6 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -425,8 +425,7 @@ if [[ "${SERVO_TYPE}" =~ ^servo_v4(p1)?_with_.*_and_.*$ ]]; then fi servo_is_ccd() { - [[ "${SERVO_TYPE}" =~ "ccd_cr50" ]] || \ - [[ "${SERVO_TYPE}" =~ "ccd_ti50" ]] + [[ "${SERVO_TYPE}" =~ "ccd" ]] } servo_has_warm_reset() { |