mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
don't close the wire when we didn't find anything. We might rescan later.
This commit is contained in:
parent
b6066a78c1
commit
7a25e0b69a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user