Skip to content

Commit 14660ef

Browse files
committed
Remove TwoWire::begin(int) overload
Inside the function, this overload truncated the data type to a shorter one. This could break some users' hopes.
1 parent cba06d1 commit 14660ef

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libraries/Wire/src/Wire.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,7 @@ class TwoWire: public Stream
100100
{
101101
return begin(addr, -1, -1, 0);
102102
}
103-
inline bool begin(int addr)
104-
{
105-
return begin(static_cast<uint8_t>(addr), -1, -1, 0);
106-
}
107-
bool end();
103+
bool end();
108104

109105
size_t setBufferSize(size_t bSize);
110106

0 commit comments

Comments
 (0)