include/nuttx/spi/spi_bitbang.c: Fix build error when the spi bitbang variable width support is enabled.

This commit is contained in:
Augusto Fraga Giachero 2019-09-05 13:40:41 -06:00 committed by Gregory Nutt
parent f08ab217b0
commit 5149fc557c

View File

@ -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.