From 4e39404604cbe0336eff7e1d087aebdec58a2021 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Fri, 26 Jan 2018 10:25:50 +0100 Subject: [PATCH] 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 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 Tested-by: Benson Leung Reviewed-by: Benson Leung --- util/ectool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;