Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
1c546f7f
Commit
1c546f7f
authored
12 years ago
by
rmackay9
Browse files
Options
Downloads
Patches
Plain Diff
FastSerial: add accessor function for blocking writes
parent
93063a81
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/FastSerial/FastSerial.h
+3
-0
3 additions, 0 deletions
libraries/FastSerial/FastSerial.h
with
3 additions
and
0 deletions
libraries/FastSerial/FastSerial.h
+
3
−
0
View file @
1c546f7f
...
...
@@ -165,6 +165,9 @@ public:
_nonblocking_writes
=
!
blocking
;
}
// get status of whether writes are blocking
bool
get_blocking_writes
()
{
return
!
_nonblocking_writes
;
}
// return true if there are bytes pending transmission
bool
tx_pending
(
void
)
{
return
(
_txBuffer
->
head
!=
_txBuffer
->
tail
);
...
...
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