mc_pos_control_main:Use discret init of poll struct

Suport upstream change in nuttx.
This commit is contained in:
David Sidrane
2019-01-25 06:32:37 -08:00
parent 78619514b7
commit f007c93785
@@ -608,7 +608,8 @@ MulticopterPositionControl::run()
poll_subscriptions();
// setup file descriptor to poll the local position as loop wakeup source
px4_pollfd_struct_t poll_fd = {.fd = _local_pos_sub};
px4_pollfd_struct_t poll_fd = {};
poll_fd.fd = _local_pos_sub;
poll_fd.events = POLLIN;
while (!should_exit()) {