From 38ff552087efdbe0d98a88e9f74bfeb5e1504997 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 11 Jun 2020 15:36:44 +0200 Subject: Wire: add sensible defaults to setWireTimeout --- libraries/Wire/src/Wire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries/Wire/src/Wire.h') 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); -- cgit v1.2.3-18-g5258