mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-15 00:56:22 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
c0ebdaee16
commit
77c0496a5a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user