mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_TemperatureSensor: use HAL_SEMAPHORE_BLOCK_FOREVER macro
This commit is contained in:
parent
6bb75a730f
commit
b1ef778215
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user