mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 13:01:37 +08:00
mavlink: correctly lock radio status
- hrt_elapsed_time_atomic is not atomic on posix - other fields like _radio_status_mult need protection as well
This commit is contained in:
@@ -658,6 +658,7 @@ private:
|
||||
|
||||
pthread_mutex_t _message_buffer_mutex {};
|
||||
pthread_mutex_t _send_mutex {};
|
||||
pthread_mutex_t _radio_status_mutex {};
|
||||
|
||||
DEFINE_PARAMETERS(
|
||||
(ParamInt<px4::params::MAV_SYS_ID>) _param_mav_sys_id,
|
||||
|
||||
Reference in New Issue
Block a user