AP_HAL_ChibiOS: Only test SPI clock if SPI is enabled
This commit is contained in:
parent
fa5e58d652
commit
416a41e756
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user