Skip to content

Commit

Permalink
AP_InertialSensor: rename wait_and_lock()
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed May 20, 2024
1 parent 7e06066 commit 9efe392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_InertialSensor/AP_InertialSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2784,7 +2784,7 @@ void AP_InertialSensor::force_save_calibration(void)

bool AP_InertialSensor::get_next_gyro_sample(Vector3f& gyro)
{
_cmutex->wait_and_lock(FUNCTOR_BIND_MEMBER(&AP_InertialSensor::gyro_samples_available, bool));
_cmutex->lock_and_wait(FUNCTOR_BIND_MEMBER(&AP_InertialSensor::gyro_samples_available, bool));
bool ret = _rate_loop_gyro_window.pop(gyro);
_cmutex->unlock();

Expand Down

0 comments on commit 9efe392

Please sign in to comment.