summaryrefslogtreecommitdiff
path: root/nuttx/drivers/input/stmpe11_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/input/stmpe11_base.c')
-rw-r--r--nuttx/drivers/input/stmpe11_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/drivers/input/stmpe11_base.c b/nuttx/drivers/input/stmpe11_base.c
index 34d13aeac..546f1d901 100644
--- a/nuttx/drivers/input/stmpe11_base.c
+++ b/nuttx/drivers/input/stmpe11_base.c
@@ -188,7 +188,7 @@ static int stmpe11_interrupt(int irq, FAR void *context)
* to protected the work queue.
*/
- DEBUGASSERT(priv->work.worker == NULL);
+ DEBUGASSERT(work_available(&priv->work));
ret = work_queue(&priv->work, stmpe11_worker, priv, 0);
if (ret != 0)
{