From 59194c975ab1a714efa2a80f1bdcd8be7262651f Mon Sep 17 00:00:00 2001 From: Michael Black Date: Tue, 24 Dec 2019 23:26:48 -0600 Subject: [PATCH] Fix cppcheck warning in ars.c --- ars/ars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ars/ars.c b/ars/ars.c index dc58ba8c6..5af7f9eca 100644 --- a/ars/ars.c +++ b/ars/ars.c @@ -437,7 +437,7 @@ static void *handle_set_position(void *arg) if (!priv->set_pos_active) { /* TODO: replace polling period by cond var */ - usleep(100 * 1000); + usleep(100 * 1000 - 1); continue; }