From 8c891bb55653d0f6d61a71a2c54fbd0e58a7f3db Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Sun, 25 Dec 2022 14:11:02 +0100 Subject: [PATCH] Remove const --- src/tftespiimpl.h | 2 +- src/tftinterface.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tftespiimpl.h b/src/tftespiimpl.h index f22f505..5150a49 100644 --- a/src/tftespiimpl.h +++ b/src/tftespiimpl.h @@ -77,7 +77,7 @@ public: uint16_t decodeUTF8(uint8_t c) override { return m_tft.decodeUTF8(c); } void setSwapBytes(bool swap) override { m_tft.setSwapBytes(swap); } - bool getSwapBytes(void) const override { return m_tft.getSwapBytes(); } + bool getSwapBytes(void) override { return m_tft.getSwapBytes(); } void startWrite(void) override { m_tft.startWrite(); } void writeColor(uint16_t color, uint32_t len) override { m_tft.writeColor(color, len); } diff --git a/src/tftinterface.h b/src/tftinterface.h index 2a1d756..6955711 100644 --- a/src/tftinterface.h +++ b/src/tftinterface.h @@ -91,7 +91,7 @@ public: // Swap the byte order for pushImage() and pushPixels() - corrects endianness virtual void setSwapBytes(bool swap) = 0; - virtual bool getSwapBytes(void) const = 0; + virtual bool getSwapBytes(void) = 0; // Bare metal functions virtual void startWrite(void) = 0;