Files
OpenCellular/common
Koro Chen 3f5d978bd5 motion: Fix comparison between signed and unsigned integer
If wait_us < 0, comparison against motion_min_interval actually fails,
and this negative wait_us causes task_wait_event() never returns if we
are not using any motion task event except the timer. The motion task
will then stop running and sensor data stay unchanged.

BRANCH=none
BUG=chrome-os-partner:54092
TEST=hardcode wait_us to a negative value before motion_min_interval check,
and see motion task is still running by EC console cmd timerinfo

Change-Id: Ic1e7ffeeb9d2ec1f5c5beb4387294014298123af
Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Reviewed-on: https://chromium-review.googlesource.com/358332
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
2016-07-11 08:25:53 -07:00
..
2016-05-26 16:17:26 -07:00
2014-05-21 20:32:17 +00:00
2015-05-19 02:46:27 +00:00
2016-03-30 04:37:39 -07:00
2016-02-08 13:47:49 -08:00
2016-04-27 14:04:07 -07:00
2014-03-06 21:33:09 +00:00
2015-09-25 09:13:34 -07:00
2014-01-14 09:19:45 +00:00
2016-03-02 13:39:47 -08:00
2016-06-03 20:14:59 -07:00
2016-06-22 02:03:09 -07:00
2015-11-25 18:15:38 -08:00
2015-10-19 13:45:49 -07:00
2014-05-17 20:14:17 +00:00
2016-05-05 19:16:50 -07:00
2016-03-21 16:35:33 -07:00
2015-09-21 01:13:54 -07:00
2015-09-24 12:46:28 -07:00