Fix udisplay ESP8266 I2C no asterix in config (#21121)

This commit is contained in:
Theo Arends 2024-07-12 12:49:00 +02:00
parent 13330eb085
commit 59de2fd979
1 changed files with 3 additions and 1 deletions

View File

@ -1074,7 +1074,9 @@ Renderer *uDisplay::Init(void) {
wire = &Wire1;
}
#endif // ESP32
wire->begin(i2c_sda, i2c_scl); // TODO: aren't I2C buses already initialized? Shouldn't this be moved to display driver?
if (i2c_sda != i2c_scl) {
wire->begin(i2c_sda, i2c_scl); // TODO: aren't I2C buses already initialized? Shouldn't this be moved to display driver?
}
#ifdef UDSP_DEBUG
Serial.printf("I2C cmds: %d\n", dsp_ncmds);