don't close the wire when we didn't find anything. We might rescan later.

pull/3933/head
Thomas Göttgens 2024-06-17 17:03:32 +02:00
rodzic b6066a78c1
commit 7a25e0b69a
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -421,10 +421,6 @@ void setup()
auto i2cCount = i2cScanner->countDevices();
if (i2cCount == 0) {
LOG_INFO("No I2C devices found\n");
Wire.end();
#ifdef I2C_SDA1
Wire1.end();
#endif
} else {
LOG_INFO("%i I2C devices found\n", i2cCount);
}