Files
OpenCellular/common
Alec Berg e3579f43d8 accel: changed motion sense host command to be more permissive with data args
Changed the ec_rate sub-command of the motion sense command. Now it
permits any value for the rate as an argument and then bounds that
to within the min and max. This matches the behavior of the other
sub-commands such that for any argument the command will return
success, but if the arg is not valid, it finds the closest valid value.

BUG=none
BRANCH=rambi
TEST=Tested on a glimmer by using the ectool motionsense command. Made
sure if you give it a value outside of the range [5, 1000], then it
simply bounds it to the closest value in that range:
> ectool motionsense ec_rate 0
5
> ectool motionsense ec_rate 100
100
> ectool motionsense ec_rate 1100
1000

Change-Id: If71299e3ab27bcfac87103c672793ac61f88100e
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/192525
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/193308
2014-04-05 03:25:50 +00:00
..
2014-02-08 00:14:48 +00:00
2013-12-20 05:07:58 +00:00
2014-03-06 21:32:57 +00:00
2013-10-25 20:12:49 +00:00
2014-02-21 22:10:09 +00:00
2013-12-19 00:12:28 +00:00
2013-12-17 21:27:53 +00:00
2014-03-06 21:33:09 +00:00
2013-10-30 23:10:13 +00:00
2014-01-14 09:19:45 +00:00
2013-09-10 23:46:07 +00:00
2013-12-05 22:30:58 +00:00
2012-10-26 09:49:38 -07:00
2013-12-19 00:12:28 +00:00
2013-06-10 01:48:44 -07:00
2013-12-19 00:12:28 +00:00
2013-11-01 20:07:24 +00:00
2014-03-01 20:15:59 +00:00