aboutsummaryrefslogtreecommitdiff
path: root/astro/opencpn/files/patch-src_chart1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'astro/opencpn/files/patch-src_chart1.cpp')
-rw-r--r--astro/opencpn/files/patch-src_chart1.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/astro/opencpn/files/patch-src_chart1.cpp b/astro/opencpn/files/patch-src_chart1.cpp
index 478ade2e0041..7ee09bb9f269 100644
--- a/astro/opencpn/files/patch-src_chart1.cpp
+++ b/astro/opencpn/files/patch-src_chart1.cpp
@@ -37,3 +37,21 @@
ret = 1;
}
close (fd);
+@@ -10409,10 +10421,17 @@ wxArrayString *EnumerateSerialPorts( voi
+
+ //Initialize the pattern table
+ if( devPatern[0] == NULL ) {
++#ifdef __linux__
+ paternAdd ( "ttyUSB" );
+ paternAdd ( "ttyACM" );
+ paternAdd ( "ttyGPS" );
+ paternAdd ( "refcom" );
++#else
++ paternAdd ( "ttyU" );
++ paternAdd ( "ttyu" );
++ paternAdd ( "ttyd" );
++ paternAdd ( "gps" );
++#endif
+ }
+
+ // Looking for user privilege openable devices in /dev