mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue