aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-mobile-main.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2019-09-27 20:34:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-04 09:16:30 -0700
commite68891d7762e26b5eb3a8ad20c71dc35d2a7fb03 (patch)
tree41ed2ab9270a307dbdb6b2b653d1f95bbb29a3bf /subsurface-mobile-main.cpp
parent43cd80dfc18474f13fc53ca00a828075e69dc3de (diff)
downloadsubsurface-e68891d7762e26b5eb3a8ad20c71dc35d2a7fb03.tar.gz
mobile: Expose ftdi if compiled in
Expose ftdi connection posibilities if its compiled in, not only on Android. Its useful to be able to test it on a Linux machine to. Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'subsurface-mobile-main.cpp')
-rw-r--r--subsurface-mobile-main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp
index 93c81f5a1..64c941fc7 100644
--- a/subsurface-mobile-main.cpp
+++ b/subsurface-mobile-main.cpp
@@ -124,8 +124,10 @@ int main(int argc, char **argv)
void set_non_bt_addresses()
{
-#if defined(Q_OS_ANDROID)
+#if SERIAL_FTDI
connectionListModel.addAddress("FTDI");
+#endif
+#if defined(Q_OS_ANDROID)
#elif defined(Q_OS_LINUX) // since this is in the else, it does NOT include Android
connectionListModel.addAddress("/dev/ttyS0");
connectionListModel.addAddress("/dev/ttyS1");