We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df44924 commit 40bffe3Copy full SHA for 40bffe3
libraries/Wire/Wire.cpp
@@ -128,6 +128,7 @@ uint8 TwoWire::process() {
128
// shift out the address we're transmitting to
129
i2c_shift_out(sla_addr);
130
if (!i2c_get_ack()) {
131
+ i2c_stop(); // Fix up the state of the bus
132
return ENACKADDR;
133
}
134
// Recieving
@@ -146,6 +147,7 @@ uint8 TwoWire::process() {
146
147
for (uint8 i = 0; i < itc_msg.length; i++) {
148
i2c_shift_out(itc_msg.data[i]);
149
150
151
return ENACKTRNS;
152
153
itc_msg.xferred++;
0 commit comments