summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-05-02 11:01:11 -0700
committerBill Richardson <wfrichar@chromium.org>2012-05-02 11:01:11 -0700
commitbca494aa53e9c6a14f9fa2370283afabf4a67c9e (patch)
treecb5df991f8b43f0b425fc718b8ee73262c8905c0
parentf1467b61b7a1b981f85029699c8073666e7abd41 (diff)
downloadchrome-ec-bca494aa53e9c6a14f9fa2370283afabf4a67c9e.tar.gz
Make lightbar task stop dropping events.
BUG=chrome-os-partner:9350 TEST=none Change-Id: I5a208aeb74f34e82393a3208f4a0cd48cdc7bff4 Signed-off-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--common/lightbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/lightbar.c b/common/lightbar.c
index dc07ba3952..d81b75c298 100644
--- a/common/lightbar.c
+++ b/common/lightbar.c
@@ -206,7 +206,7 @@ static const struct {
/* Interruptible delay */
#define WAIT_OR_RET(A) do { \
uint32_t msg = task_wait_event(A); \
- if (!(msg & TASK_EVENT_TIMER)) \
+ if (TASK_EVENT_CUSTOM(msg)) \
return TASK_EVENT_CUSTOM(msg); } while (0)
/* CPU is off */