Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RTKLIB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
labrobotica
algorithms
RTKLIB
Commits
a613f6f6
Commit
a613f6f6
authored
6 years ago
by
TimEverett
Browse files
Options
Downloads
Patches
Plain Diff
Baudrate fix for MacOS baudrates
parent
511551fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/stream.c
+8
-0
8 additions, 0 deletions
src/stream.c
with
8 additions
and
0 deletions
src/stream.c
+
8
−
0
View file @
a613f6f6
...
...
@@ -345,9 +345,17 @@ static serial_t *openserial(const char *path, int mode, char *msg)
COMMTIMEOUTS
co
=
{
MAXDWORD
,
0
,
0
,
0
,
0
};
/* non-block-read */
char
dcb
[
64
]
=
""
;
#else
#ifdef __APPLE__
/* MacOS doesn't support higher baudrates (>230400B) */
const
speed_t
bs
[]
=
{
B300
,
B600
,
B1200
,
B2400
,
B4800
,
B9600
,
B19200
,
B38400
,
B57600
,
B115200
,
B230400
};
#else
/* regular Linux with higher baudrates */
const
speed_t
bs
[]
=
{
B300
,
B600
,
B1200
,
B2400
,
B4800
,
B9600
,
B19200
,
B38400
,
B57600
,
B115200
,
B230400
,
B460800
};
#endif
/* ifdef __APPLE__ */
struct
termios
ios
=
{
0
};
int
rw
=
0
;
#endif
...
...
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