Skip to content

Commit

Permalink
AP_HAL_ChibiOS: Only test SPI clock if SPI is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and tridge committed Jan 10, 2024
1 parent fa5e58d commit 416a41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 416a41e

Please sign in to comment.