Unverified Commit 3585c586 authored by SirSydom's avatar SirSydom Committed by GitHub

Reset the SDA and SCL pins to INPUT at Wire.end() to prevent multiple pins...

Reset the SDA and SCL pins to INPUT at Wire.end() to prevent multiple pins connected to I2C when changing pins (#302)
parent a8121f31
......@@ -181,6 +181,8 @@ void TwoWire::end() {
return;
}
i2c_deinit(_i2c);
pinMode(_sda, INPUT);
pinMode(_scl, INPUT);
_running = false;
_txBegun = false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment