Skip to content

Commit

Permalink
Wire: add sensible defaults to setWireTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Jun 11, 2020
1 parent deea929 commit 38ff552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/Wire/src/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/Wire/src/Wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 38ff552

Please sign in to comment.