diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-06-02 15:39:51 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-06-04 11:34:43 +0200 |
commit | bbeca601138ff51b817bb1ef84b53a70572d0c19 (patch) | |
tree | 111284be89a59d92a5735df35116d0ce11db6034 /plugins | |
parent | 657d5e61802db19be728e5e2e313c4f80244cb4d (diff) |
ublox: fully ignore GPS devices with plugin-installed rules
Instead of setting up the ID_MM_TTY_BLACKLIST tag used in 'legacy'
filter mode, tag all known u-blox GPS devices with the broader
ID_MM_DEVICE_IGNORE tag that applies under all filter modes.
Also, make this rules be installed by the plugin itself, because at
the end, it is the u-blox plugin the one attempting to probe all
devices with vid 0x1546.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ublox/77-mm-ublox-port-types.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/ublox/77-mm-ublox-port-types.rules b/plugins/ublox/77-mm-ublox-port-types.rules index 9f8263ee..c07de334 100644 --- a/plugins/ublox/77-mm-ublox-port-types.rules +++ b/plugins/ublox/77-mm-ublox-port-types.rules @@ -7,6 +7,11 @@ LABEL="mm_ublox_port_types" SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}" +# Fully ignore u-blox GPS devices +ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", ENV{ID_MM_DEVICE_IGNORE}="1" +ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", ENV{ID_MM_DEVICE_IGNORE}="1" +ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", ENV{ID_MM_DEVICE_IGNORE}="1" + # Toby-L4 port types # ttyACM0 (if #2): secondary (ignore) # ttyACM1 (if #4): debug port (ignore) |