Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
38ff5520
Commit
38ff5520
authored
Jun 11, 2020
by
Martino Facchin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wire: add sensible defaults to setWireTimeout
parent
deea9293
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libraries/Wire/src/Wire.cpp
libraries/Wire/src/Wire.cpp
+1
-1
libraries/Wire/src/Wire.h
libraries/Wire/src/Wire.h
+1
-1
No files found.
libraries/Wire/src/Wire.cpp
View file @
38ff5520
...
...
@@ -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
::
setWireTimeout
Us
(
uint32_t
timeout
,
bool
reset_with_timeout
){
void
TwoWire
::
setWireTimeout
(
uint32_t
timeout
,
bool
reset_with_timeout
){
twi_setTimeoutInMicros
(
timeout
,
reset_with_timeout
);
}
...
...
libraries/Wire/src/Wire.h
View file @
38ff5520
...
...
@@ -55,7 +55,7 @@ class TwoWire : public Stream
void
begin
(
int
);
void
end
();
void
setClock
(
uint32_t
);
void
setWireTimeout
Us
(
uint32_t
,
bool
);
void
setWireTimeout
(
uint32_t
timeout
=
25000
,
bool
reset_with_timeout
=
false
);
bool
getWireTimeoutFlag
(
void
);
void
clearWireTimeoutFlag
(
void
);
void
beginTransmission
(
uint8_t
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment