Do not introduce a new field in i2c_smbus class

This commit is contained in:
Michal Malý
2025-08-06 22:32:17 +02:00
parent 23ec68701a
commit f5fc3ff450
4 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,10 @@ bool IsRecognizedI2CBus(i2c_smbus_interface* bus)
const char *name;
while((name = RECOGNIZED_I2C_BUS_NAMES[idx++]) != nullptr)
{
if (std::strcmp(name, bus->bus_name) == 0) return true;
if(std::strcmp(name, bus->device_name) == 0)
{
return true;
}
}
return false;