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:
parent
43cd80dfc1
commit
e68891d776
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user