AP_Compass: Change direct value to define name

This commit is contained in:
murata 2019-09-24 01:52:05 +09:00 committed by Andrew Tridgell
parent 5d67618968
commit a74123148b

View File

@ -68,7 +68,7 @@ AP_Compass_MMC3416::AP_Compass_MMC3416(AP_HAL::OwnPtr<AP_HAL::Device> _dev,
bool AP_Compass_MMC3416::init()
{
if (!dev->get_semaphore()->take(0)) {
if (!dev->get_semaphore()->take(HAL_SEMAPHORE_BLOCK_FOREVER)) {
return false;
}