kendryte / kendryte-freertos-demo

Demo of kendryte k210 FreeRTOS SDK
https://github.com/kendryte/kendryte-freertos-sdk
64 stars 24 forks source link

i2c goes into infinite loop is there is no slave device #8

Open Moo2017 opened 5 years ago

Moo2017 commented 5 years ago

I have set i2c in master mode, where slave device is connected it works fine but if I disconnect the slave device and try to read from i2c, it stays in i2c_dev_transfert_sequential forever while I expect that it exits with an error, looks like there is no timeout in case of error.