mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-30 18:25:21 -04:00
Fix fetchI2CBus judgment error
This commit is contained in:
1 parent
68ef27df8b
commit
24bb52e83f
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user