Skip to content

Commit f09ecb7

Browse files
authored
Fix typo in ESP8266 arch define (ThingPulse#322)
1 parent c519c0e commit f09ecb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SSD1306Wire.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class SSD1306Wire : public OLEDDisplay {
8282
}
8383

8484
bool connect() {
85-
#if !defined(ARDUINO_ARCH_ESP32) && !defined(ARDUINO_ARCH8266)
85+
#if !defined(ARDUINO_ARCH_ESP32) && !defined(ARDUINO_ARCH_ESP8266)
8686
_wire->begin();
8787
#else
8888
// On ESP32 arduino, -1 means 'don't change pins', someone else has called begin for us.
@@ -198,7 +198,7 @@ class SSD1306Wire : public OLEDDisplay {
198198

199199
void initI2cIfNeccesary() {
200200
if (_doI2cAutoInit) {
201-
#if !defined(ARDUINO_ARCH_ESP32) && !defined(ARDUINO_ARCH8266)
201+
#if !defined(ARDUINO_ARCH_ESP32) && !defined(ARDUINO_ARCH_ESP8266)
202202
_wire->begin();
203203
#else
204204
_wire->begin(this->_sda, this->_scl);

0 commit comments

Comments
 (0)