Skip to content

Commit 01fe242

Browse files
committed
Fix sh1106 on nrf52
Bring a fix from a fork home: meshtastic#18
1 parent ed1feac commit 01fe242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/SH1106Wire.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class SH1106Wire : public OLEDDisplay {
198198

199199
void initI2cIfNeccesary() {
200200
if (_doI2cAutoInit) {
201-
#ifdef ARDUINO_ARCH_AVR
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)