Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d121f475
Commit
d121f475
authored
Nov 19, 2015
by
Don Gagne
Browse files
Allow broader radio fallback on mobile
parent
15997868
Changes
1
Show whitespace changes
Inline
Side-by-side
src/comm/QGCSerialPortInfo.cc
View file @
d121f475
...
...
@@ -84,6 +84,13 @@ QGCSerialPortInfo::BoardType_t QGCSerialPortInfo::boardType(void) const
}
else
if
(
description
()
==
"FT231X USB UART"
)
{
qCDebug
(
QGCSerialPortInfoLog
)
<<
"Found possible Radio (by name matching fallback)"
;
boardType
=
BoardType3drRadio
;
#ifdef __android__
}
else
if
(
description
().
endsWith
(
"USB UART"
))
{
// This is a fairly broad fallbacks for radios which will also catch most FTDI devices. That would
// cause problems on desktop due to incorrect connections. Since mobile is more anal about connecting
// it will work fine here.
boardType
=
BoardType3drRadio
;
#endif
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment