mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
don't close the wire when we didn't find anything. We might rescan later.
This commit is contained in:
@@ -421,10 +421,6 @@ void setup()
|
|||||||
auto i2cCount = i2cScanner->countDevices();
|
auto i2cCount = i2cScanner->countDevices();
|
||||||
if (i2cCount == 0) {
|
if (i2cCount == 0) {
|
||||||
LOG_INFO("No I2C devices found\n");
|
LOG_INFO("No I2C devices found\n");
|
||||||
Wire.end();
|
|
||||||
#ifdef I2C_SDA1
|
|
||||||
Wire1.end();
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
LOG_INFO("%i I2C devices found\n", i2cCount);
|
LOG_INFO("%i I2C devices found\n", i2cCount);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user