From 77c0496a5ab13d588f57aecbc2fd62bea96b7585 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Fri, 6 Apr 2018 11:10:40 +0200 Subject: fpsensor: fix bug in fpcapture console command Since the last update of the 'fpcapture' debug console command, the requested capture mode was ignored. Fix the 2 identically-named variables stepping on each other (dear compiler, why are you so distracted too ?) Signed-off-by: Vincent Palatin BRANCH=poppy BUG=b:72360575 TEST=on ZerbleBarn, run 'fpcapture 0' and 'fpcapture 1' Change-Id: I1fefd24b988f0db8bcbb90cc3370135d01cbddee Reviewed-on: https://chromium-review.googlesource.com/999600 Commit-Ready: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Nicolas Norvez --- common/fpsensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fpsensor.c b/common/fpsensor.c index 7d1993a61f..b968a9914b 100644 --- a/common/fpsensor.c +++ b/common/fpsensor.c @@ -514,8 +514,8 @@ int command_fpcapture(int argc, char **argv) if (argc >= 2) { char *e; - int capture_type = strtoi(argv[1], &e, 0); + capture_type = strtoi(argv[1], &e, 0); if (*e || capture_type < 0) return EC_ERROR_PARAM1; } -- cgit v1.2.1