spim_nrf52: Fix fall-through in switch statement
When setting the SPIM speed to 8 MHz, the driver will return an error due to a missing "break" causing the execution flow to reach the default case. Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
This commit is contained in:
parent
dc1dad34f3
commit
9e0d1e4232
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ static int spim_nrf52_configure(struct device *dev,
|
|||
break;
|
||||
case 8000000:
|
||||
spim->FREQUENCY = SPIM_FREQUENCY_FREQUENCY_M8;
|
||||
break;
|
||||
default:
|
||||
SYS_LOG_ERR("unsupported frequency sck=%d\n",
|
||||
spi_config->max_sys_freq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue