summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macos.c b/macos.c
index 0e2afbb1f..cdfce4c67 100644
--- a/macos.c
+++ b/macos.c
@@ -87,7 +87,8 @@ int subsurface_fill_device_list(GtkListStore *store)
dev = g_dir_open("/dev", 0, NULL);
while (dev && (name = g_dir_read_name(dev)) != NULL) {
- if (strstr(name, "usbserial")) {
+ if (strstr(name, "usbserial") ||
+ (strstr(name, "SerialPort") && strstr(name, "cu"))) {
int len = strlen(name) + 6;
char *devicename = malloc(len);
snprintf(devicename, len, "/dev/%s", name);