Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
0a35b553
Commit
0a35b553
authored
8 years ago
by
Sandeep Mistry
Browse files
Options
Downloads
Patches
Plain Diff
Add getTimeout accessor method to Stream
Port of
https://github.com/arduino/Arduino/pull/4718
to SAMD core.
parent
40e5a4fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+1
-0
1 addition, 0 deletions
CHANGELOG
cores/arduino/Stream.h
+2
-1
2 additions, 1 deletion
cores/arduino/Stream.h
with
3 additions
and
1 deletion
CHANGELOG
+
1
−
0
View file @
0a35b553
...
...
@@ -9,6 +9,7 @@ SAMD CORE
* Fixed writing LOW to a digital input pin blocking subsequent digitalRead attempts
* Fixed digitalWrite() unnecessarily activating the pull-up resistor
* Wire: Slave writes now use TX buffer
* Added getTimeout() method to Stream.
SAMD CORE 1.6.6 2016.05.19
...
...
This diff is collapsed.
Click to expand it.
cores/arduino/Stream.h
+
2
−
1
View file @
0a35b553
...
...
@@ -66,7 +66,8 @@ class Stream : public Print
// parsing methods
void
setTimeout
(
unsigned
long
timeout
);
// sets maximum milliseconds to wait for stream data, default is 1 second
unsigned
long
getTimeout
(
void
)
{
return
_timeout
;
}
bool
find
(
char
*
target
);
// reads data from the stream until the target string is found
bool
find
(
uint8_t
*
target
)
{
return
find
((
char
*
)
target
);
}
// returns true if target string is found, false if timed out (see setTimeout)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment