Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
16ee3c6a
Commit
16ee3c6a
authored
Jan 13, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed last comm port config error
parent
20d72b17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
SerialConfigurationWindow.cc
src/ui/SerialConfigurationWindow.cc
+10
-10
SerialConfigurationWindow.h
src/ui/SerialConfigurationWindow.h
+3
-3
No files found.
src/ui/SerialConfigurationWindow.cc
View file @
16ee3c6a
...
...
@@ -260,9 +260,9 @@ userConfigured(false)
connect
(
ui
.
portName
,
SIGNAL
(
currentIndexChanged
(
QString
)),
this
,
SLOT
(
setPortName
(
QString
)));
connect
(
ui
.
baudRate
,
SIGNAL
(
activated
(
int
)),
this
->
link
,
SLOT
(
setBaudRateType
(
int
)));
connect
(
ui
.
flowControlCheckBox
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
enableFlowControl
(
bool
)));
connect
(
ui
.
parNone
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setParityNone
()));
connect
(
ui
.
parOdd
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setParityOdd
()));
connect
(
ui
.
parEven
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setParityEven
()));
connect
(
ui
.
parNone
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setParityNone
(
bool
)));
connect
(
ui
.
parOdd
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setParityOdd
(
bool
)));
connect
(
ui
.
parEven
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setParityEven
(
bool
)));
connect
(
ui
.
dataBitsSpinBox
,
SIGNAL
(
valueChanged
(
int
)),
this
->
link
,
SLOT
(
setDataBits
(
int
)));
connect
(
ui
.
stopBitsSpinBox
,
SIGNAL
(
valueChanged
(
int
)),
this
->
link
,
SLOT
(
setStopBits
(
int
)));
...
...
@@ -283,7 +283,7 @@ userConfigured(false)
break
;
default:
// Enforce default: no parity in link
setParityNone
();
setParityNone
(
true
);
ui
.
parNone
->
setChecked
(
true
);
break
;
}
...
...
@@ -473,19 +473,19 @@ void SerialConfigurationWindow::enableFlowControl(bool flow)
}
}
void
SerialConfigurationWindow
::
setParityNone
()
void
SerialConfigurationWindow
::
setParityNone
(
bool
accept
)
{
link
->
setParityType
(
0
);
if
(
accept
)
link
->
setParityType
(
0
);
}
void
SerialConfigurationWindow
::
setParityOdd
()
void
SerialConfigurationWindow
::
setParityOdd
(
bool
accept
)
{
link
->
setParityType
(
1
);
if
(
accept
)
link
->
setParityType
(
1
);
}
void
SerialConfigurationWindow
::
setParityEven
()
void
SerialConfigurationWindow
::
setParityEven
(
bool
accept
)
{
link
->
setParityType
(
2
);
if
(
accept
)
link
->
setParityType
(
2
);
}
void
SerialConfigurationWindow
::
setPortName
(
QString
port
)
...
...
src/ui/SerialConfigurationWindow.h
View file @
16ee3c6a
...
...
@@ -55,9 +55,9 @@ public:
public
slots
:
void
configureCommunication
();
void
enableFlowControl
(
bool
flow
);
void
setParityNone
();
void
setParityOdd
();
void
setParityEven
();
void
setParityNone
(
bool
accept
);
void
setParityOdd
(
bool
accept
);
void
setParityEven
(
bool
accept
);
void
setPortName
(
QString
port
);
void
setLinkName
(
QString
name
);
void
setupPortList
();
...
...
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