include/nuttx/spi/spi_bitbang.c: Fix build error when the spi bitbang variable width support is enabled.
This commit is contained in:
parent
f08ab217b0
commit
5149fc557c
@ -593,7 +593,7 @@ static uint16_t spi_exchange(FAR struct spi_bitbang_s *priv, uint16_t dataout)
|
||||
* rate.
|
||||
*/
|
||||
|
||||
shift = priv->nbits - 1
|
||||
shift = priv->nbits - 1;
|
||||
for (bit = 1 << shift; bit != 0; bit >>= 1)
|
||||
{
|
||||
/* Shift to make space for the next, less significant bit.
|
||||
|
Loading…
Reference in New Issue
Block a user