From e68891d7762e26b5eb3a8ad20c71dc35d2a7fb03 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Fri, 27 Sep 2019 20:34:09 +0200 Subject: [PATCH] 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 --- subsurface-mobile-main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");