diff --git a/libraries/AP_TemperatureSensor/TSYS01.cpp b/libraries/AP_TemperatureSensor/TSYS01.cpp index c837686f36..3731fbae45 100644 --- a/libraries/AP_TemperatureSensor/TSYS01.cpp +++ b/libraries/AP_TemperatureSensor/TSYS01.cpp @@ -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"); }