Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel Firmware
serial
Commits
1ca16c47
Commit
1ca16c47
authored
14 years ago
by
William Woodall
Browse files
Options
Download
Email Patches
Plain Diff
More windows changes.
parent
ef56594f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/serial.cpp
src/serial.cpp
+3
-3
No files found.
src/serial.cpp
View file @
1ca16c47
...
...
@@ -342,11 +342,11 @@ void Serial::setParity(parity_t parity) {
const
parity_t
Serial
::
getParity
()
{
switch
(
this
->
parity
.
value
())
{
case
boost
::
asio
::
serial_port_base
::
parity
::
none
:
return
parity_t
(
PARITY_
NONE
);
return
parity_t
(
NONE
);
case
boost
::
asio
::
serial_port_base
::
parity
::
odd
:
return
parity_t
(
PARITY_
ODD
);
return
parity_t
(
ODD
);
case
boost
::
asio
::
serial_port_base
::
parity
::
even
:
return
parity_t
(
PARITY_
EVEN
);
return
parity_t
(
EVEN
);
default:
throw
(
InvalidParityException
(
this
->
parity
.
value
()));
}
...
...
This diff is collapsed.
Click to expand it.
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