diff options
-rw-r--r-- | common/lightbar.c | 2 |
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 */ |