ws2812: moved SPI_LOCK and forgot to change spi drv var name
This snuck in durring a slight PR fixup.
This commit is contained in:
parent
5bb4eb39f2
commit
f41b9a10b3
|
@ -134,7 +134,7 @@ static inline void ws2812_configspi(FAR struct spi_dev_s *spi)
|
|||
* There is no CS on this device we just use MOSI and it is exclusive
|
||||
*/
|
||||
|
||||
SPI_LOCK(priv->spi, true); /* Exclusive use of the bus */
|
||||
SPI_LOCK(spi, true); /* Exclusive use of the bus */
|
||||
SPI_SETMODE(spi, SPIDEV_MODE3);
|
||||
SPI_SETBITS(spi, 8);
|
||||
SPI_HWFEATURES(spi, 0);
|
||||
|
|
Loading…
Reference in New Issue