diff options
Diffstat (limited to 'libraries/Wire')
-rw-r--r-- | libraries/Wire/src/Wire.cpp | 2 | ||||
-rw-r--r-- | libraries/Wire/src/Wire.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libraries/Wire/src/Wire.cpp b/libraries/Wire/src/Wire.cpp index b446f9a..81aca98 100644 --- a/libraries/Wire/src/Wire.cpp +++ b/libraries/Wire/src/Wire.cpp @@ -94,7 +94,7 @@ void TwoWire::setClock(uint32_t clock) * @param reset_with_timeout if true then TWI interface will be automatically reset on timeout * if false then TWI interface will not be reset on timeout */ -void TwoWire::setWireTimeoutUs(uint32_t timeout, bool reset_with_timeout){ +void TwoWire::setWireTimeout(uint32_t timeout, bool reset_with_timeout){ twi_setTimeoutInMicros(timeout, reset_with_timeout); } diff --git a/libraries/Wire/src/Wire.h b/libraries/Wire/src/Wire.h index c8b9a3e..e70d72e 100644 --- a/libraries/Wire/src/Wire.h +++ b/libraries/Wire/src/Wire.h @@ -55,7 +55,7 @@ class TwoWire : public Stream void begin(int); void end(); void setClock(uint32_t); - void setWireTimeoutUs(uint32_t, bool); + void setWireTimeout(uint32_t timeout = 25000, bool reset_with_timeout = false); bool getWireTimeoutFlag(void); void clearWireTimeoutFlag(void); void beginTransmission(uint8_t); |