Skip to content

Commit

Permalink
Remove compiler warning
Browse files Browse the repository at this point in the history
Now all enum values (of rcc_clk_domain) used
  • Loading branch information
saloid authored Aug 8, 2019
1 parent a3a5686 commit 5d85d7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions STM32F1/libraries/SPI/src/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ static spi_baud_rate determine_baud_rate(spi_dev *dev, uint32_t freq) {
{
case RCC_APB2: clock = STM32_PCLK2; break; // 72 Mhz
case RCC_APB1: clock = STM32_PCLK1; break; // 36 Mhz
case RCC_AHB: clock = 0; break; //There is no SPI on this bus, but it removes compiler warning
}
clock /= 2;
i = 0;
Expand Down

0 comments on commit 5d85d7b

Please sign in to comment.