lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
651 stars 125 forks source link

Apparent hang in AVR TWI communications when display absent #145

Open commodoretim opened 2 years ago

commodoretim commented 2 years ago

Aleksei, thank you for the ssd1306 library. Very capable and useful!

There appears to be a hang in the AVR TWI communications when a display is absent e.g. disconnected from the microcontroller. Removing one line, referenced below, which increments an iteration counter that is meant to decrement, solves the issue for me.

https://github.com/lexus2k/ssd1306/blob/a962410ea7842afb4921ddc0232796f4c27feb9b/src/intf/i2c/ssd1306_i2c_twi.c#L79

Gratefully, Tim