Skip to content

Commit 0f3f657

Browse files
SPITFT: ESP8266 fix
1 parent a453d08 commit 0f3f657

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Adafruit_SPITFT.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
537537
// device needs to be set up before calling this because it's
538538
// immediately followed with initialization commands. Blargh.
539539
if(
540+
#if !defined(SPI_INTERFACES_COUNT)
541+
1
542+
#endif
540543
#if SPI_INTERFACES_COUNT > 0
541544
(hwspi._spi == &SPI)
542545
#endif
@@ -556,7 +559,7 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
556559
|| (hwspi._spi == &SPI5)
557560
#endif
558561
) {
559-
hwspi._spi->begin();
562+
hwspi._spi->begin();
560563
}
561564
} else if(connection == TFT_SOFT_SPI) {
562565

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit GFX Library
2-
version=1.4.12
2+
version=1.4.13
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.

0 commit comments

Comments
 (0)