Merge pull request #2531 from lewisxhe/master

Fix fetchI2CBus judgment error
This commit is contained in:
Thomas Göttgens
2023-05-30 09:51:54 +02:00
committed by GitHub

View File

@@ -291,7 +291,7 @@ void ScanI2CTwoWire::scanPort(I2CPort port)
TwoWire *ScanI2CTwoWire::fetchI2CBus(ScanI2C::DeviceAddress address) const
{
if (address.port == ScanI2C::I2CPort::WIRE1) {
if (address.port == ScanI2C::I2CPort::WIRE) {
return &Wire;
} else {
#ifdef I2C_SDA1