Skip to content

Commit 5a90401

Browse files
committed
Corrected wrong default value (units are us)
1 parent 375c494 commit 5a90401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Wire/Wire.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ class TwoWire : public arduino::HardwareI2C {
124124
void onRequest( void (*)(void) );
125125

126126
void setBusStatus(WireStatus_t);
127-
/* set timeout in us for I2C communication (default is 1 ms)
127+
/* set timeout in us for I2C communication (default is 1000 us)
128128
the second parameter has been added for compatibility but it has no effect*/
129-
void setWireTimeout(unsigned int t = 1, bool reset_on_timeout = false);
129+
void setWireTimeout(unsigned int t = 1000, bool reset_on_timeout = false);
130130

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

0 commit comments

Comments
 (0)