From df0248f08cdc0bcebce7122ce37a4a25c24f84ef Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 19 Nov 2015 13:14:58 -0800 Subject: [PATCH] Allow broader radio fallback on mobile --- src/comm/QGCSerialPortInfo.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/comm/QGCSerialPortInfo.cc b/src/comm/QGCSerialPortInfo.cc index 9b5ad4e957..fb3316a89e 100644 --- a/src/comm/QGCSerialPortInfo.cc +++ b/src/comm/QGCSerialPortInfo.cc @@ -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 } } -- GitLab