navigator: usual usleep after poll fail

We don't want to busy loop after the poll fail if that ever happened.
This commit is contained in:
Julian Oes
2016-10-11 13:05:37 +02:00
committed by Beat Küng
parent f6ad9b8283
commit 7cdf9c31bf
+1
View File
@@ -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 {