You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having either the SCL or SDA line pulled low can cause an unrecoverable hang in the I2C/wire library. Any i2c device with its own internal pull ups that is running on switched power will suddenly pull both SCL and SDA low if the switched power is turned off. The next time the Mayfly tries to communicate with any I2C devices, like the RTC, it will hang forever.
There are alternatives to the "built in" Wire library that add a timeout to prevent the hang, but it would be very difficult to replace all the calls to wire in other people's libraries and implement an alternative. A hardware solution is needed.
Having either the SCL or SDA line pulled low can cause an unrecoverable hang in the I2C/wire library. Any i2c device with its own internal pull ups that is running on switched power will suddenly pull both SCL and SDA low if the switched power is turned off. The next time the Mayfly tries to communicate with any I2C devices, like the RTC, it will hang forever.
http://forum.arduino.cc/index.php/topic,19624.0.html
I'm sure this is the cause of EnviroDIY/ModularSensors#176
There are alternatives to the "built in" Wire library that add a timeout to prevent the hang, but it would be very difficult to replace all the calls to wire in other people's libraries and implement an alternative. A hardware solution is needed.
@s-hicks2
The text was updated successfully, but these errors were encountered: