mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-13 03:13:57 -04:00
AP_Compass: Change direct value to define name
This commit is contained in:
parent
9226899c6f
commit
ec0c49315f
@ -68,7 +68,7 @@ AP_Compass_MMC3416::AP_Compass_MMC3416(AP_HAL::OwnPtr<AP_HAL::Device> _dev,
|
|||||||
|
|
||||||
bool AP_Compass_MMC3416::init()
|
bool AP_Compass_MMC3416::init()
|
||||||
{
|
{
|
||||||
if (!dev->get_semaphore()->take(0)) {
|
if (!dev->get_semaphore()->take(HAL_SEMAPHORE_BLOCK_FOREVER)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user