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
20f9040b
Commit
20f9040b
authored
Feb 11, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix possible ununitialized but used variables
parent
017e564a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
MAVLinkSimulationLink.cc
src/comm/MAVLinkSimulationLink.cc
+3
-0
FlightModeConfig.cc
src/ui/configuration/FlightModeConfig.cc
+1
-1
No files found.
src/comm/MAVLinkSimulationLink.cc
View file @
20f9040b
...
...
@@ -677,6 +677,9 @@ void MAVLinkSimulationLink::writeBytes(const char* data, qint64 size)
int
streampointer
=
0
;
uint8_t
buffer
[
MAVLINK_MAX_PACKET_LEN
];
int
bufferlength
=
0
;
// Initialize drop count to 0 so it isn't referenced uninitialized when returned at the bottom of this function
comm
.
packet_rx_drop_count
=
0
;
// Output all bytes as hex digits
for
(
int
i
=
0
;
i
<
size
;
i
++
)
...
...
src/ui/configuration/FlightModeConfig.cc
View file @
20f9040b
...
...
@@ -222,7 +222,7 @@ void FlightModeConfig::remoteControlChannelRawChanged(int chan, float val)
if
(
chan
==
_modeSwitchRCChannel
)
{
qDebug
()
<<
chan
<<
val
;
size_t
highlightIndex
;
size_t
highlightIndex
=
_cModes
;
// initialize to unreachable index
for
(
size_t
i
=
0
;
i
<
_cModes
;
i
++
)
{
if
(
val
<
_rgModePWMBoundary
[
i
])
{
...
...
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