From d69f14c1519f8fab5f0ce4b8a8dc5a8ffd125aa3 Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Tue, 25 May 2021 09:43:28 -0700 Subject: [PATCH] Fix class on swapBytes() --- Adafruit_SPITFT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adafruit_SPITFT.cpp b/Adafruit_SPITFT.cpp index a7d3c1c2..46a54368 100644 --- a/Adafruit_SPITFT.cpp +++ b/Adafruit_SPITFT.cpp @@ -959,7 +959,7 @@ void Adafruit_SPITFT::writePixel(int16_t x, int16_t y, uint16_t color) { otherwise, if NULL (default) or same address is passed, pixel buffer is overwritten in-place. */ -void swapBytes(uint16_t *src, uint32_t len, uint16_t *dest) { +void Adafruit_SPITFT::swapBytes(uint16_t *src, uint32_t len, uint16_t *dest) { if (!dest) dest = src; // NULL -> overwrite src buffer for (uint32_t i = 0; i < len; i++) {