AP_HAL_ChibiOS: Only test SPI clock if SPI is enabled

This commit is contained in:
Iampete1 2024-01-08 21:05:43 +00:00 committed by Andrew Tridgell
parent fa5e58d652
commit 416a41e756

View File

@ -227,7 +227,7 @@ static void main_loop()
hal.serial(0)->begin(SERIAL0_BAUD);
#ifdef HAL_SPI_CHECK_CLOCK_FREQ
#if (HAL_USE_SPI == TRUE) && defined(HAL_SPI_CHECK_CLOCK_FREQ)
// optional test of SPI clock frequencies
ChibiOS::SPIDevice::test_clock_freq();
#endif