Skip to content
Snippets Groups Projects
Commit f007c937 authored by David Sidrane's avatar David Sidrane
Browse files

mc_pos_control_main:Use discret init of poll struct

   Suport upstream change in nuttx.
parent 78619514
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment