diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-02-28 07:43:31 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-28 07:43:31 -0800 |
commit | e5f2f3e65f5bd894d917f42f2de09ae693dfb9d3 (patch) | |
tree | 84dd459697846f6f659e31c8f0fb6cbb93b14d01 /macos.c | |
parent | 6855be0f1cf801b7d5dbcbbeb720efcc3d5ab997 (diff) | |
download | subsurface-e5f2f3e65f5bd894d917f42f2de09ae693dfb9d3.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'macos.c')
-rw-r--r-- | macos.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |