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:
Beat Küng
2021-09-23 09:23:08 +02:00
parent 0bfb1a983b
commit 6f902e54f9
3 changed files with 18 additions and 3 deletions
+1
View File
@@ -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,