pwm_out_sim sleep if no fds (#4829)

-fixes #4828
This commit is contained in:
Daniel Agar
2016-06-15 20:29:19 +02:00
committed by Lorenz Meier
parent 2a26611cf5
commit d16daf5ba4
+3
View File
@@ -414,7 +414,10 @@ PWMSim::task_main()
_current_update_rate = _update_rate;
}
/* this can happen during boot, but after the sleep its likely resolved */
if (_poll_fds_num == 0) {
usleep(1000 * 1000);
PX4_DEBUG("no valid fds");
continue;
}