From 5149fc557c8e1d5a02f5df9654efa489aa4a648e Mon Sep 17 00:00:00 2001 From: Augusto Fraga Giachero Date: Thu, 5 Sep 2019 13:40:41 -0600 Subject: [PATCH] include/nuttx/spi/spi_bitbang.c: Fix build error when the spi bitbang variable width support is enabled. --- include/nuttx/spi/spi_bitbang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/spi/spi_bitbang.c b/include/nuttx/spi/spi_bitbang.c index ee5188d1ab..b33f5f0464 100644 --- a/include/nuttx/spi/spi_bitbang.c +++ b/include/nuttx/spi/spi_bitbang.c @@ -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.