Skip to content

Commit

Permalink
Fix class on swapBytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed May 25, 2021
1 parent f31c435 commit d69f14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit d69f14c

Please sign in to comment.