Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_OSD: reduce scope of WITH_SEMAPHORE #13248

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

peterbarker
Copy link
Contributor

The backend write() calls don't look nasty ATM - but we should get in,
get out data and get out again ASAP.

Tested in SITL.

The backend write() calls don't look nasty ATM - but we should get in,
get out data and get out again ASAP.
auto &baro = AP::baro();
WITH_SEMAPHORE(baro.get_semaphore());
vspd = baro.get_climb_rate();
}
} while (false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the while (false) for?

@peterbarker
Copy link
Contributor Author

peterbarker commented Jan 13, 2020 via email

@tridge tridge merged commit 9410d40 into ArduPilot:master Jan 13, 2020
@peterbarker peterbarker deleted the pr/osd-semaphore-scope branch January 14, 2020 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants