mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
AP_HAL_ChibiOS: correct HAL_SPI_CHECK_CLOCK_FREQ build error
This commit is contained in:
parent
a6312ac893
commit
3521090dd5
@ -500,7 +500,7 @@ void SPIDevice::test_clock_freq(void)
|
||||
uint32_t t0 = AP_HAL::micros();
|
||||
spiStartExchange(spi_devices[i].driver, len, buf1, buf2);
|
||||
chSysLock();
|
||||
msg_t msg = osalThreadSuspendTimeoutS(&spi_devices[i].driver->thread, TIME_MS2I(100));
|
||||
msg_t msg = osalThreadSuspendTimeoutS(&spi_devices[i].driver->thread, chTimeMS2I(100));
|
||||
chSysUnlock();
|
||||
if (msg == MSG_TIMEOUT) {
|
||||
spiAbort(spi_devices[i].driver);
|
||||
|
Loading…
Reference in New Issue
Block a user