summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-04-19 12:24:10 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-19 19:29:02 -0700
commit2d5331b9a2a32b855ea4e667bfa9d1b7c3801013 (patch)
tree3eba6647e62aec614f02e25535727897db807d13 /util
parenta51e6428d897efb72a06670c0c49b6d7a5b05d9f (diff)
downloadchrome-ec-2d5331b9a2a32b855ea4e667bfa9d1b7c3801013.tar.gz
flash_ec: Save the original servo states
When first supporting CCD, it skips saving the original servo states as some of the controls are not supported in CCD. https://chromium-review.googlesource.com/344427 But then we customized what controls will be used according to the servo board type. https://chromium-review.googlesource.com/572142 So we should save original states again. It helps to restore the original servo states if it gets interrupted in the middle. BRANCH=none BUG=none TEST=Tried running flash_ec using servo-micro. Change-Id: I5b873d871d36feed4a0e511ba858db9e093a22be Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1020158 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 04307929b7..b25a23c192 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -1029,7 +1029,7 @@ info "Using ${SERVO_TYPE}."
IMG="$(ec_image)"
info "Using ${MCU} image : ${IMG}"
-if ! on_raiden && [ "${NEED_SERVO}" != "no" ] ; then
+if [ "${NEED_SERVO}" != "no" ] ; then
save="$(servo_save)"
fi