Skip to content

Commit 0f231b1

Browse files
authored
Adding custom buffer_length using I2C_BUFFER_LENGTH (#8390)
* Adding custom buffer_length using I2C_BUFFER_LENGTH
1 parent 2492057 commit 0f231b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/Wire/Wire.h

+4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929

3030

3131

32+
#ifndef I2C_BUFFER_LENGTH
3233
#define BUFFER_LENGTH 128
34+
#else
35+
#define BUFFER_LENGTH I2C_BUFFER_LENGTH
36+
#endif
3337

3438
class TwoWire : public Stream
3539
{

0 commit comments

Comments
 (0)