mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 14:03:33 +08:00
ulog mavlink: use the px4_sem calls (needed for OSX)
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
|
||||
bool MavlinkULog::_init = false;
|
||||
MavlinkULog *MavlinkULog::_instance = nullptr;
|
||||
sem_t MavlinkULog::_lock;
|
||||
px4_sem_t MavlinkULog::_lock;
|
||||
const float MavlinkULog::_rate_calculation_delta_t = 0.1f;
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ void MavlinkULog::initialize()
|
||||
if (_init) {
|
||||
return;
|
||||
}
|
||||
sem_init(&_lock, 1, 1);
|
||||
px4_sem_init(&_lock, 1, 1);
|
||||
_init = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user