Skip to content

Commit 4f15d9d

Browse files
committed
Renamed Wire timeout function
1 parent bb58da9 commit 4f15d9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/Wire/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ void TwoWire::flush(void) {
836836
}
837837

838838
/* -------------------------------------------------------------------------- */
839-
void TwoWire::setTimeout(unsigned int t) {
839+
void TwoWire::setWireTimeout(unsigned int t) {
840840
/* -------------------------------------------------------------------------- */
841841
timeout = t;
842842
}

libraries/Wire/Wire.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class TwoWire : public arduino::HardwareI2C {
125125

126126
void setBusStatus(WireStatus_t);
127127
/* set timeout in ms for I2C communication */
128-
void setTimeout(unsigned int t);
128+
void setWireTimeout(unsigned int t);
129129

130130
inline size_t write(unsigned long n) { return write((uint8_t)n); }
131131
inline size_t write(long n) { return write((uint8_t)n); }

0 commit comments

Comments
 (0)