summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-14 18:51:02 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-16 07:58:20 -0700
commitae42b7ceb094984fb6c94a65cbc8e0cf715cd06e (patch)
treed05a1d175e8632a250d0c0878e8fb50b96e073d8
parentec3a968df9d8fc706fedb788959631e2ed84e04b (diff)
downloadsubsurface-ae42b7ceb094984fb6c94a65cbc8e0cf715cd06e.tar.gz
android/usb: stop adding the obsolete 'usb-serial' connection
The code that supported this has now been replaced by the USB device selection code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-mobile-main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp
index d1c371a40..8b11851b7 100644
--- a/subsurface-mobile-main.cpp
+++ b/subsurface-mobile-main.cpp
@@ -88,9 +88,7 @@ int main(int argc, char **argv)
void set_non_bt_addresses()
{
-#if defined(Q_OS_ANDROID)
- connectionListModel.addAddress("usb-serial"); /* obsolete, can be removed when the new USB device selection is implemented. */
-#elif defined(Q_OS_LINUX) // since this is in the else, it does NOT include Android
+#if defined(Q_OS_LINUX) // since this is in the else, it does NOT include Android
connectionListModel.addAddress("/dev/ttyS0");
connectionListModel.addAddress("/dev/ttyS1");
connectionListModel.addAddress("/dev/ttyS2");