Skip to content

Commit 3972d36

Browse files
committed
Wire: allow scanning bus via beginTransmission-endTransmission
1 parent b0e8ff0 commit 3972d36

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

libraries/Wire/Wire.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ uint8_t TwoWire::endTransmission(bool stopBit)
109109
{
110110
transmissionBegun = false ;
111111

112-
// Check if there are data to send
113-
if ( txBuffer.available() == 0)
114-
{
115-
return 4 ;
116-
}
117-
118112
// Start I2C transmission
119113
if ( !sercom->startTransmissionWIRE( txAddress, WIRE_WRITE_FLAG ) )
120114
{

0 commit comments

Comments
 (0)