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>
This commit is contained in:
Vincent Palatin
2018-01-26 10:25:50 +01:00
committed by chrome-bot
parent 1701465551
commit 4e39404604

View File

@@ -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;