mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
AP_Baro: skip timer if we don't get the SPI semaphore
This commit is contained in:
parent
66073ee94f
commit
9b972af307
@ -280,7 +280,9 @@ void AP_Baro_MS5611::_update(uint32_t tnow)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_serial->sem_take_nonblocking();
|
if (!_serial->sem_take_nonblocking()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
_timer = tnow;
|
_timer = tnow;
|
||||||
|
|
||||||
if (_state == 0) {
|
if (_state == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user