Skip to content

Commit

Permalink
Merge pull request #333 from rgiese/master
Browse files Browse the repository at this point in the history
Fix compiler errors thrown by recent Particle cloud compiler updates
  • Loading branch information
PaintYourDragon authored Feb 1, 2021
2 parents b53849e + 347b134 commit 3dab29c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
}
Expand Down
4 changes: 4 additions & 0 deletions Adafruit_SPITFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ class Adafruit_SPITFT : public Adafruit_GFX {
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:
Expand Down

0 comments on commit 3dab29c

Please sign in to comment.