Skip to content
Commit b9ccaaea authored by Marcio Ribeiro's avatar Marcio Ribeiro Committed by Fabio Baltieri
Browse files

drivers: spi: esp32: fix exception in mode 3 & soft-ctrld CS



Fixes division by zero exception when SPI is configured to operate in mode3
whit CS controlled by software.

Such exception occurred because data->dfs is listed as the denominator in
a division inside the spi_esp32_transfer() function which is called from
spi_esp32_configure() (before assigning a value to data->dfs) inside
transceive() in the condition where mode 3 is chosen as the SPI operating
mode and the chip select is configured to be software-controlled.

Signed-off-by: default avatarMarcio Ribeiro <marcio.ribeiro@espressif.com>
parent 85c292ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment