summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2018-01-26 10:25:50 +0100
committerchrome-bot <chrome-bot@chromium.org>2018-01-26 16:12:08 -0800
commit4e39404604cbe0336eff7e1d087aebdec58a2021 (patch)
tree7b276e7783b1c8187904807d2e3e0b497043cc53
parent17014655511d0b2b254d5f1f58e3e0f471694a41 (diff)
downloadchrome-ec-4e39404604cbe0336eff7e1d087aebdec58a2021.tar.gz
ectool: increase image capture delay to 200ms
the current 50ms delay between the capture and having the image available was working (to some definition of it) on the current boards, but we hit issues on the next revision of the board with new sensor silicon (and somewhat different delay), let's put a larger 200ms delay. This will be converted to waiting for the proper MKBP event (aka EC_MKBP_FP_IMAGE_READY) when all the boards using this feature will have MKBP events support validated. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=b:71770455 TEST=run 'ectool --name=cros_fp fpcheckpixels' on different boards. Change-Id: Id1f2402ef85c903744054b00eeab0086221b4d7b Reviewed-on: https://chromium-review.googlesource.com/888738 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Benson Leung <bleung@chromium.org> Reviewed-by: Benson Leung <bleung@chromium.org>
-rw-r--r--util/ectool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 155947d4a2..18234c2e53 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -1151,7 +1151,7 @@ static int fp_pattern_frame(int capt_type, const char *title, int inv)
if (rv < 0)
return -1;
/* ensure the capture has happened without using event support */
- usleep(50000);
+ usleep(200000);
pattern = fp_download_frame(&info);
if (!pattern)
return -1;