mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2026-07-28 04:16:01 +00:00
Merge pull request #333 from rgiese/master
Fix compiler errors thrown by recent Particle cloud compiler updates
This commit is contained in:
+2
-1
@@ -560,7 +560,7 @@ void Adafruit_SPITFT::initSPI(uint32_t freq, uint8_t spiMode) {
|
||||
if (
|
||||
#if !defined(SPI_INTERFACES_COUNT)
|
||||
1
|
||||
#endif
|
||||
#else
|
||||
#if SPI_INTERFACES_COUNT > 0
|
||||
(hwspi._spi == &SPI)
|
||||
#endif
|
||||
@@ -579,6 +579,7 @@ void Adafruit_SPITFT::initSPI(uint32_t freq, uint8_t spiMode) {
|
||||
#if SPI_INTERFACES_COUNT > 5
|
||||
|| (hwspi._spi == &SPI5)
|
||||
#endif
|
||||
#endif // end SPI_INTERFACES_COUNT
|
||||
) {
|
||||
hwspi._spi->begin();
|
||||
}
|
||||
|
||||
@@ -154,6 +154,10 @@ public:
|
||||
int8_t wr, int8_t dc, int8_t cs = -1, int8_t rst = -1,
|
||||
int8_t rd = -1);
|
||||
|
||||
// DESTRUCTOR ----------------------------------------------------------
|
||||
|
||||
~Adafruit_SPITFT(){};
|
||||
|
||||
// CLASS MEMBER FUNCTIONS ----------------------------------------------
|
||||
|
||||
// These first two functions MUST be declared by subclasses:
|
||||
|
||||
Reference in New Issue
Block a user