Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fd0b3ee

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. Fixes: #353
1 parent 9415e0f commit fd0b3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎libraries/Wire/src/Wire.cpp‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /