diff options
author | Reinhard Arlt <reinhard.arlt@t-online.de> | 2012-10-11 11:11:18 +0200 |
---|---|---|
committer | Reinhard Arlt <reinhard.arlt@t-online.de> | 2012-10-11 11:11:18 +0200 |
commit | fa8834b25c9ea0b5e7b493d61e05d611ca47cb16 (patch) | |
tree | 559720769291693b4d1fbca40e11244d5aff25a8 | |
parent | be0b0c5ec781a1b9ce3c1d7cf19e706e8527e651 (diff) | |
parent | fd5e03b22434a9cd67de599e02c46c988c7ea2e9 (diff) | |
download | gpsd-fa8834b25c9ea0b5e7b493d61e05d611ca47cb16.tar.gz |
Merge branch 'master' of git://git.sv.gnu.org/gpsd
-rw-r--r-- | gpsd.rules | 2 | ||||
-rw-r--r-- | serial.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -43,6 +43,8 @@ ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea71", SYMLINK="gps%n", RUN+="/lib/u ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug" # u-blox AG, u-blox 6 (tested with GNSS Evaluation Kit TCXO) [linux module: cdc_acm] ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug" +# MediaTek (tested with HOLUX M-1200E) [linux module: cdc_acm] +ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="3329", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug" ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug" @@ -420,8 +420,10 @@ int gpsd_serial_open(struct gps_device_t *session) * We have to make an exception for ptys, which are intentionally * opened by another process on the master side, otherwise we'll * break all our regression tests. + * + * We also exclude bluetooth device because the bluetooth daemon opens them. */ - if (session->sourcetype != source_pty) { + if (!(session->sourcetype == source_pty || session->sourcetype == source_bluetooth)) { /* * Try to block other processes from using this device while we * have it open (later opens should return EBUSY). Won't work |