From cda80a23d231cb498d964912e55dc3e226613a27 Mon Sep 17 00:00:00 2001 From: Paint Your Dragon Date: Fri, 17 Sep 2021 10:49:34 -0700 Subject: [PATCH] Update Adafruit_SPITFT.cpp Appease clang-format --- Adafruit_SPITFT.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Adafruit_SPITFT.cpp b/Adafruit_SPITFT.cpp index 6c5ca92..b78d5ce 100644 --- a/Adafruit_SPITFT.cpp +++ b/Adafruit_SPITFT.cpp @@ -1027,10 +1027,12 @@ void Adafruit_SPITFT::writePixels(uint16_t *colors, uint32_t len, bool block, if (!bigEndian) { // switch to 16-bit writes - hw_write_masked(&spi_get_hw(pi_spi)->cr0, 15 << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS); + hw_write_masked(&spi_get_hw(pi_spi)->cr0, 15 << SPI_SSPCR0_DSS_LSB, + SPI_SSPCR0_DSS_BITS); spi_write16_blocking(pi_spi, colors, len); // switch back to 8-bit - hw_write_masked(&spi_get_hw(pi_spi)->cr0, 7 << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS); + hw_write_masked(&spi_get_hw(pi_spi)->cr0, 7 << SPI_SSPCR0_DSS_LSB, + SPI_SSPCR0_DSS_BITS); } else { spi_write_blocking(pi_spi, (uint8_t *)colors, len * 2); }