mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 16:03:33 +08:00
logger: allocate _vehicle_status_sub & _parameter_update_sub on the logger thread
This makes sure the file descriptors are closed in the right thread. Before on NuttX, when stopping the logger, orb unsubscribe failed due to this.
This commit is contained in:
@@ -95,8 +95,8 @@ private:
|
||||
|
||||
bool _task_should_exit = true;
|
||||
char _log_dir[64];
|
||||
uORB::Subscription<vehicle_status_s> _vehicle_status_sub {ORB_ID(vehicle_status)};
|
||||
uORB::Subscription<parameter_update_s> _parameter_update_sub {ORB_ID(parameter_update)};
|
||||
uORB::Subscription<vehicle_status_s> *_vehicle_status_sub = nullptr;
|
||||
uORB::Subscription<parameter_update_s> *_parameter_update_sub = nullptr;
|
||||
bool _enabled = false;
|
||||
|
||||
// statistics
|
||||
|
||||
Reference in New Issue
Block a user