Skip to content

Commit 0f4b0d8

Browse files
committed
Merge branch 'i2c_scan_fix' of https://github.com/facchinm/ArduinoCore-samd into HEAD
2 parents 6f2482c + 3972d36 commit 0f4b0d8

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
@@ -111,12 +111,6 @@ uint8_t TwoWire::endTransmission(bool stopBit)
111111
{
112112
transmissionBegun = false ;
113113

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

0 commit comments

Comments
 (0)