From e5f2f3e65f5bd894d917f42f2de09ae693dfb9d3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 28 Feb 2013 07:43:31 -0800 Subject: Better Bluetooth device support on Mac We now show the correct device name for Bluetooth connected dive computers in the drop down menu in the Download dialog. This also updates the corresponding chapter in user manual. Signed-off-by: Dirk Hohndel --- macos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'macos.c') 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); -- cgit v1.2.3-70-g09d2