Fix Issue#402 Cannot handle multiple I2C devices on RPi 4B

This commit is contained in:
Guy McSwain 2020-12-18 19:56:35 -06:00
parent 258b034512
commit 55608548fc
1 changed files with 1 additions and 1 deletions

View File

@ -4116,7 +4116,7 @@ int i2cOpen(unsigned i2cBus, unsigned i2cAddr, unsigned i2cFlags)
i2cInfo[slot].addr = i2cAddr;
i2cInfo[slot].flags = i2cFlags;
i2cInfo[slot].funcs = funcs;
i2cInfo[i].state = PI_I2C_OPENED;
i2cInfo[slot].state = PI_I2C_OPENED;
return slot;
}