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>
This commit is contained in:
Anton Lundin 2019-09-27 20:34:09 +02:00 committed by Dirk Hohndel
parent 43cd80dfc1
commit e68891d776

View file

@ -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");