mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 12:43:34 +08:00
mavlink_command_sender: instantiate in initialize
This commit is contained in:
@@ -98,10 +98,7 @@ private:
|
||||
px4_sem_post(&_lock);
|
||||
}
|
||||
|
||||
|
||||
static bool _init;
|
||||
static MavlinkCommandSender *_instance;
|
||||
|
||||
static px4_sem_t _lock;
|
||||
|
||||
// There are MAVLINK_COMM_0 to MAVLINK_COMM_3, so it should be 4.
|
||||
|
||||
Reference in New Issue
Block a user