AP_Baro: skip timer if we don't get the SPI semaphore

This commit is contained in:
Andrew Tridgell 2013-01-09 20:27:48 +11:00
parent 66073ee94f
commit 9b972af307

View File

@ -280,7 +280,9 @@ void AP_Baro_MS5611::_update(uint32_t tnow)
return;
}
_serial->sem_take_nonblocking();
if (!_serial->sem_take_nonblocking()) {
return;
}
_timer = tnow;
if (_state == 0) {