MrKevinWeiss df19d33b77 stm32_common/i2c_2: Fix repeated read condition
Fix the condition to return -ENOPNOTSUPP when i2c repeated read attempted.
Currently the error occures even if a read after write is attempted.
This is the standard way to i2c_read_reg which should be supported.
The -EOPNOTSUPP requires the previous R/W state to be reading.
This means a `I2C_SR2_TRA` must be checked to be 0.
2019-10-25 10:35:48 +02:00
..
2017-11-28 14:36:01 +01:00
2019-08-06 19:43:54 +02:00
2019-07-04 15:27:50 +02:00
2019-07-23 17:05:37 +02:00
2017-11-28 11:55:48 +01:00
2017-11-28 11:55:48 +01:00
2019-09-12 19:07:40 +02:00