Fix hanging with multiple I2C buses
Make the _mutex non-static and remove _owner and acquire() When two or more I2C buses are used then static__mutex and _owner are shared between all I2C class instances in the program. That wastes time to reconfigure periphery on every transfer. Make _mutex non-static. Remove _owner and acquire() method because in non-static case they have no practical meaning. |
---|
|
drivers/include/drivers/I2C.h |
---|
drivers/source/I2C.cpp |
---|