From db4f0c24cd04ca1b71a87b5fbc0c8bd9f0ffe500 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 26 Nov 2018 22:38:46 -0500 Subject: spicmds: Check for an incorrect mode in spicmds.c Check the mode parameter in spicmds.c so that the mcu code does not need to check it. Signed-off-by: Kevin O'Connor --- src/stm32f1/spi.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/stm32f1/spi.c') diff --git a/src/stm32f1/spi.c b/src/stm32f1/spi.c index ab3a4589..7bea6cb5 100644 --- a/src/stm32f1/spi.c +++ b/src/stm32f1/spi.c @@ -30,8 +30,6 @@ static void spi_set_mode(SPI_TypeDef *spi, uint8_t mode) LL_SPI_SetClockPolarity(spi, LL_SPI_POLARITY_HIGH); LL_SPI_SetClockPhase(spi, LL_SPI_PHASE_2EDGE); break; - default: - shutdown("Invalid SPI mode"); } } -- cgit v1.2.3-70-g09d2