Skip to content

Commit 70921e5

Browse files
committed
Fix compilation error on ESP32C6
Fixes #419, #370
1 parent aa10104 commit 70921e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SH1106Wire.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class SH1106Wire : public OLEDDisplay {
7777
this->_address = address;
7878
this->_sda = sda;
7979
this->_scl = scl;
80-
#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3)
80+
#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6)
8181
this->_wire = &Wire;
8282
#else
8383
this->_wire = (i2cBus==I2C_ONE) ? &Wire : &Wire1;

src/SSD1306Wire.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class SSD1306Wire : public OLEDDisplay {
7878
this->_address = address;
7979
this->_sda = sda;
8080
this->_scl = scl;
81-
#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3)
81+
#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6)
8282
this->_wire = &Wire;
8383
#else
8484
this->_wire = (i2cBus == I2C_ONE) ? &Wire : &Wire1;

0 commit comments

Comments
 (0)