summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christof Arnosti <charno@charno.ch>2020-03-15 15:35:39 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-16 07:58:20 -0700
commitae537fc4007cad207916af6d2aa262e0391399d1 (patch)
treea7be80497557eadf05c0b08670e23261195fe3c4
parent87e12029f9cfa0ffea6499c3bc186a0177cbe172 (diff)
downloadsubsurface-ae537fc4007cad207916af6d2aa262e0391399d1.tar.gz
android: don't show /dev/ttyS* connection
Signed-off-by: Christof Arnosti <charno@charno.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-mobile-main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp
index 8b11851b7..89319ba31 100644
--- a/subsurface-mobile-main.cpp
+++ b/subsurface-mobile-main.cpp
@@ -88,7 +88,7 @@ int main(int argc, char **argv)
void set_non_bt_addresses()
{
-#if defined(Q_OS_LINUX) // since this is in the else, it does NOT include Android
+#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
connectionListModel.addAddress("/dev/ttyS0");
connectionListModel.addAddress("/dev/ttyS1");
connectionListModel.addAddress("/dev/ttyS2");