Skip to content

Commit 3dd08de

Browse files
authored
Merge pull request #286 from arduino/i2c_smallrevert
Revert "Wire: unlock the bus on begin()"
2 parents aee54e9 + 146fa95 commit 3dd08de

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Diff for: libraries/Wire/Wire.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -405,19 +405,6 @@ void TwoWire::_begin(void) {
405405
init_ok = false;
406406
}
407407
}
408-
409-
if (init_ok) {
410-
// inspired by https://community.element14.com/products/roadtest/b/blog/posts/using-i2c-spi-and-dma-on-renesas-ra2l1-part-1
411-
// abort previous transactions
412-
if (!is_sci) {
413-
for (int i = 0; i < 20; i++) {
414-
m_i2c_ctrl.p_reg->ICCR1_b.CLO = 1;
415-
while (m_i2c_ctrl.p_reg->ICCR1_b.CLO) {
416-
}
417-
}
418-
}
419-
m_abort(&m_i2c_ctrl);
420-
}
421408
}
422409

423410
/* -------------------------------------------------------------------------- */

0 commit comments

Comments
 (0)