summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2018-04-06 11:10:40 +0200
committerchrome-bot <chrome-bot@chromium.org>2018-04-06 14:44:06 -0700
commit77c0496a5ab13d588f57aecbc2fd62bea96b7585 (patch)
tree5895269a0cd2752b28acc17c9aeb3f3d61e73f8a
parentc0ebdaee162cc5090458207b354fad4cb8ea89a9 (diff)
downloadchrome-ec-77c0496a5ab13d588f57aecbc2fd62bea96b7585.tar.gz
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 <vpalatin@chromium.org> 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 <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Nicolas Norvez <norvez@chromium.org>
-rw-r--r--common/fpsensor.c2
1 files changed, 1 insertions, 1 deletions
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;
}