Skip to content

Commit 6d6add4

Browse files
committed
fix a bug
1 parent 483981d commit 6d6add4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/src/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ TwoWire::requestFrom(uint16_t address, uint8_t size, bool sendStop) //请求数
273273
size--;
274274
}
275275
}
276-
return state;
276+
return i2c_rx_buff->available();
277277
}
278278

279279
size_t

0 commit comments

Comments
 (0)