Skip to content

Commit

Permalink
cpu/nrf51/spi: clamp lower val
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Aug 30, 2022
1 parent a0cbc16 commit 36b1b11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpu/nrf51/periph/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ spi_clk_t spi_get_clk(spi_t bus, uint32_t freq)
if (freq >= 125000) {
return SPI_FREQUENCY_FREQUENCY_K125;
}
assert(0);
/* TODO: Maybe throw a debug message that it is lower than requested freq */
return SPI_FREQUENCY_FREQUENCY_K125;
}

uint32_t spi_get_freq(spi_t bus, spi_clk_t clk)
Expand Down

0 comments on commit 36b1b11

Please sign in to comment.