summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2018-12-20 12:51:59 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-30 13:06:37 -0800
commit16ce90ccf29129157d5cea0bea79dcb29367cd08 (patch)
tree2e75beddf293332cb348acfea4035da85c8f07d2 /common
parent435f3aacb86fbab25679ff889b027facc92bb5dc (diff)
downloadchrome-ec-16ce90ccf29129157d5cea0bea79dcb29367cd08.tar.gz
hatch: Add support for fan and temperature sensors
BRANCH=none BUG=b:122251649 TEST=make buildall Change-Id: Ib831eecb7e6df270a266f723e2fc5040b741e72f Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1387592 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fan.c b/common/fan.c
index d2d080070b..f9d32d6820 100644
--- a/common/fan.c
+++ b/common/fan.c
@@ -236,7 +236,7 @@ static int cc_fanset(int argc, char **argv)
if (argc < 2)
return EC_ERROR_PARAM_COUNT;
- rpm = strtoi(argv[1], &e, 0);
+ rpm = strtoi(argv[2], &e, 0);
if (*e == '%') { /* Wait, that's a percentage */
ccprintf("Fan rpm given as %d%%\n", rpm);
if (rpm < 0)