From 7cdf9c31bf23410896869cad028c330dc4d0c6cb Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 1 Aug 2016 10:54:22 +0200 Subject: [PATCH] navigator: usual usleep after poll fail We don't want to busy loop after the poll fail if that ever happened. --- src/modules/navigator/navigator_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 31a5a43559..cae040c02d 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -349,6 +349,7 @@ Navigator::task_main() } else if (pret < 0) { /* this is undesirable but not much we can do - might want to flag unhappy status */ PX4_WARN("nav: poll error %d, %d", pret, errno); + usleep(10000); continue; } else {