mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 07:28:54 +08:00
mc_pos_control_main:Use discret init of poll struct
Suport upstream change in nuttx.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user