Softwire library blocks in case of hardware failure
Posted: Mon Mar 30, 2020 9:57 am
Hi all,
i have interfaced a MPU6050 with an Olimexino STM32 board using the Softwire library. I was performing tests, and I tried to short SCL and SDA to produce an error and check whether it is correctly handled in my code. To my surprise, doing so blocks the execution somewhere in the library, so the called function does not return FALSE, and the error handling cannot take place.
Is anyone aware of this problem? I develop using the Arduino IDE, so no debug is possible.
i have interfaced a MPU6050 with an Olimexino STM32 board using the Softwire library. I was performing tests, and I tried to short SCL and SDA to produce an error and check whether it is correctly handled in my code. To my surprise, doing so blocks the execution somewhere in the library, so the called function does not return FALSE, and the error handling cannot take place.
Is anyone aware of this problem? I develop using the Arduino IDE, so no debug is possible.