OSDN Git Service

IRDA-1184: Fix poll time calculation routine
authorPatrick Porlan <patrick.porlan@intel.com>
Mon, 29 Sep 2014 15:26:00 +0000 (17:26 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Wed, 1 Oct 2014 11:22:08 +0000 (14:22 +0300)
commit91169afdbdcbdf36ca591fd31eafcdc7919936b7
treebf8053aca9b122c52a8a025829955378aa2939a5
parent2afe8697a76ed7916a668b29d21743608019cdb3
IRDA-1184: Fix poll time calculation routine

The poll delay should be maximum if we're operating in continuous mode
even if the sensor supports a motion trigger. This should very slightly
lower CPU consumption, avoiding a few unrequired exits from epoll.

Issue: IRDA-1184

Change-Id: I026be3de5fed49b77f7d9ac3718ab7c71e527d9d
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c