Skip to content

Commit bc638e1

Browse files
Wire: Fix method name in comment
This method was renamed shortly before merging this code and it seems some comments were note updated.
1 parent 9415e0f commit bc638e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/Wire/src/Wire.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ void TwoWire::setClock(uint32_t clock)
9797
* master that has claimed the bus).
9898
*
9999
* When a timeout is triggered, a flag is set that can be queried with `getWireTimeoutFlag()` and is cleared
100-
* when `clearWireTimeoutFlag()` or `setWireTimeoutUs()` is called.
100+
* when `clearWireTimeoutFlag()` or `setWireTimeout()` is called.
101101
*
102102
* Note that this timeout can also trigger while waiting for clock stretching or waiting for a second master
103103
* to complete its transaction. So make sure to adapt the timeout to accomodate for those cases if needed.
104104
* A typical timeout would be 25ms (which is the maximum clock stretching allowed by the SMBus protocol),
105105
* but (much) shorter values will usually also work.
106106
*
107107
* In the future, a timeout will be enabled by default, so if you require the timeout to be disabled, it is
108-
* recommended you disable it by default using `setWireTimeoutUs(0)`, even though that is currently
108+
* recommended you disable it by default using `setWireTimeout(0)`, even though that is currently
109109
* the default.
110110
*
111111
* @param timeout a timeout value in microseconds, if zero then timeout checking is disabled

0 commit comments

Comments
 (0)