Skip to content

Commit

Permalink
Workaround fix for ESP32 #10
Browse files Browse the repository at this point in the history
  • Loading branch information
lexus2k committed Dec 4, 2017
1 parent 6b035c8 commit 2098cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i2c/ssd1306_i2c_wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ void ssd1306_i2cConfigure_Wire(int8_t scl, int8_t sda)
void ssd1306_i2cSendByte_Wire(uint8_t data)
{
// Do not write too many bytes for standard Wire.h. It may become broken
#if defined(I2C_BUFFER_LENGTH)
if (s_bytesWritten >= (I2C_BUFFER_LENGTH >> 1))
#if defined(ESP32) || defined(ESP31B)
if (s_bytesWritten >= (I2C_BUFFER_LENGTH >> 4))
#elif defined(BUFFER_LENGTH)
if (s_bytesWritten >= (BUFFER_LENGTH >> 1))
#else
Expand Down

0 comments on commit 2098cb8

Please sign in to comment.