AP_TemperatureSensor: use HAL_SEMAPHORE_BLOCK_FOREVER macro

This commit is contained in:
Peter Barker 2017-05-02 16:11:48 +10:00 committed by Randy Mackay
parent 6bb75a730f
commit b1ef778215

View File

@ -29,7 +29,7 @@ bool TSYS01::init()
return false;
}
if (!_dev->get_semaphore()->take(0)) {
if (!_dev->get_semaphore()->take(HAL_SEMAPHORE_BLOCK_FOREVER)) {
AP_HAL::panic("PANIC: TSYS01: failed to take serial semaphore for init");
}