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_RangeFinder: fixed VL53L0X semaphore usage #9024

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Jul 26, 2018

No description provided.

@tridge tridge added the BUG label Jul 26, 2018
}

sensor->init();
if (!sensor->init()) {
Copy link
Member

Choose a reason for hiding this comment

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

This could have been put right after check_id: if (!sensor->check_id() || !sensor->init()), but what I don't like is the assumption that semaphore is taken - I know with current code it does because of blocking take, but a small change from 0 to 1 and this code might have the same issue as before.

@tridge tridge merged commit a8647f8 into ArduPilot:master Jul 26, 2018
@rmackay9
Copy link
Contributor

Thanks very much for this. I'm sure this was discovered during Copter-3.6 beta testing so the fix is greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Copter 3.6 Backports
  
3.6.0-rc7
Development

Successfully merging this pull request may close these issues.

None yet

3 participants