Skip to content

Commit

Permalink
Fix misnamed function call in nRF code
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed May 25, 2021
1 parent d69f14c commit 4c87f9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1014,11 +1014,11 @@ void Adafruit_SPITFT::writePixels(uint16_t *colors, uint32_t len, bool block,
#elif defined(ARDUINO_NRF52_ADAFRUIT) && \
defined(NRF52840_XXAA) // Adafruit nRF52 use SPIM3 DMA at 32Mhz
if (!bigEndian) {
byteSwap(colors, len); // convert little-to-big endian for display
swapBytes(colors, len); // convert little-to-big endian for display
}
hwspi._spi->transfer(colors, NULL, 2 * len); // NULL RX to avoid overwrite
if (!bigEndian) {
byteSwap(colors, len); // big-to-little endian to restore pixel buffer
swapBytes(colors, len); // big-to-little endian to restore pixel buffer
}

return;
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit GFX Library
version=1.10.8
version=1.10.9
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.
Expand Down

0 comments on commit 4c87f9a

Please sign in to comment.